Jump to content

unexpected T_STRING


mike177

Recommended Posts

Hi, I'm getting a parse error on ling 44 which is $query line. I've checked through the file and from what I can see its all up to scratch. Any suggestions - I attched the complete file if your feeling adventurace.

 

function confirmPass($email, $pass){
if(!get_magic_quotes_gpc()){
	$email = addslashes($email);
}
$query = "SELECT password FROM "Accounts" WHERE email = '$email'";
$result = mysql_query($query);
if(!$result || (mysql_num_rows($result) < 1)){
	return 1;
}
$dbarray = mysql_fetch_array($result);
$dbarray['password'] = stripslashes($dbarray['password']);
$password = stripslashes($pass);
if($password == $dbarray['password']){
	return 0;
}
else{
	return 2;
}
}

 

[attachment deleted by admin]

Link to comment
https://forums.phpfreaks.com/topic/110268-unexpected-t_string/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.