Bir md5 şifreyi kontrol etmek mümkün mü

0 Cevap php

More precisely: i want to check if the user enters his same password as the one store in the DB for its profile. i have tried something like this but i dont get an echo:

$query2=mysql_query("SELECT emails_password,emails_id  FROM lala.in_emails  WHERE  emails_password ='md5($password)' AND emails_id='".$_COOKIE['LALA_ID']."'")or die(mysql_error());
if(mysql_num_rows($query2)>0){echo "same pass";}

belki md5 algo her zaman değişir?

0 Cevap