Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unexpected T_IF

Status
Not open for further replies.

Tuck007

Technical User
Apr 29, 2002
105
US
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
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 {?>
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:
Code:
Parse error: parse error, unexpected T_IF in D:\vector\login.php on line 22
Any suggestions? .:TUCK:.
 
DOH!

That did it, tank you! .:TUCK:.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top