mysql_fetch_array error

admin

Administrator
Staff member
I use the following code to create a simple
authenication system with mySQL:

$row = mysql_fetch_row($result);

if (($pass == $row["password"]))
return 1;
else
return 0;

for some reason, the parser says there's
something wrong with the if statement and
the exact error is:

Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in functions.php on line 22
 
Back
Top