Originally posted by TheDefender
md5() is a one way hash algorithm if I am not mistaken... so I don't think it can be done.
correct you are, and md5() in php and mySQL are a bit different... so you cant do something like this...
$result = mysql_fetch_array(mysql_query('SELECT md5("Blah") AS pword'));
if ($result['pass'] == md5('Blah') { echo "They are the same!"; }
else { echo "They are not the same!"; }
and expect to get "They are the same!"