Hi men
im trying to develop script for vbulletin
i will ask the user to enter his password im forum
i should validate password from database
i know that vbulletin use md5() to crypt passwords but
i need to know it do that
ex:
i tryed to check the password 123456 but this way:
[PHP]$gtdata=mysql_query("select password from user where username='abdoelmasry'");
$cdata=mysql_fetch_row($gtdata);
if(md5($cdata[0])=="123456"){
echo "Ok Go";
}
else{
echo "Invalid Password";
}[/PHP]
im sure that the password is 123456
why i cann't check it by md5() ??