Hi there!
In my script I use the following code:
Despite the fact that $mypassword already exists in the $table, this query always gives me a wrong result if I ask an existing or not pwd in this table !!!
Would you tell me what's wrong in this query and the if/else block?
Many thanks in advance for your help!
Regards,
Gerry
In my script I use the following code:
Code:
$table = "_lisausers";
$mypassword; //this is a 'POST' variable
$query =mysql_query("SELECT pwd FROM `$table` WHERE pwd LIKE '$mypassword'" ) or die();
if (mysql_num_rows( $query ) > 0) {
print "&retour=true";
}
else {
print "&retour=false";
}
Would you tell me what's wrong in this query and the if/else block?
Many thanks in advance for your help!
Regards,
Gerry
Comment