If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.
Post a reply to the thread: Whats wrong with my PHP Code?
Click here to log in
What comes after M0nday
You may choose an icon for your message from this list
Will turn www.example.com into [URL]http://www.example.com[/URL].
You may rate this thread from 1-star (Terrible) to 5-stars (Excellent) if you wish to do so.
Whats wrong with my PHP Code? Parse error: syntax error, unexpected T_IF in /home/content/s/e/c/sectarian/html/bdon/farcry/login.php on line 6 I get this error every time i run it. Here is my code: <?php $username = #_POST['username']; $password = #_POST['password']; if ($username&&$password) { $connect = mysql_connect("localhost","root","") or die ("couldn't connect!"); mysql_select_db("phplogin") or die ("couldnt find db"); } else die("Please enter a username and a passwrod!"); ?>
Whats wrong with my PHP Code?
Forum Rules