I am trying to encrypt a private pin number by using the MySQL function md5(). I am unable to use this function and keep getting a failed query message back. Here's the code:
$result = mysql_query("SELECT * FROM securepin
WHERE pinnum = md5('$pinnumber')");
if(mysql_num_rows($result) < 1)
{
echo 'The Pin Number you entered is invalid';
return false;
}
The password() function, on the other hand, works fine. But I want to use md5(). Ideas anyone?