I'm trying to make a simple login in page, and I'm using a MySQL database to store one usernames and passwords. This is a snippet of the login.php that I am using. I'm also using PHP 4.2.1
The code continues to display an invalid message to user. I'm new to a lot of this and I don't know if I set up the if statement right. When I run the script, I see:
Any suggestions? .:TUCK:.
Code:
20$myrow = mysql_fetch_array($result)
21
22if($_POST['username'] == $myrow['username'] AND $_POST['password'] == $myrow['password']){
23
24include 'qualified.php';
25}
26
27else {?>
Code:
Parse error: parse error, unexpected T_IF in D:\vector\login.php on line 22