Alright so I have my code .....
$password = mysql_query("SELECT password FROM staff WHERE name='plague'") or die(mysql_error());
$password = mysql_fetch_array($password);
echo $password[password];
$password2 = "somepassword";
echo "<BR><BR>";
echo "<BR><BR>";
echo md5($password2);
if($password == md5(chop($password2)){
echo "true";
}
okay the thing here is it returns the output in the echo as...
15cbec7e295209fccc739d2e89a265ce
15cbec7e295209fccc739d2e89a265ce
which in my opinion look exactly the same..
But when it's checking in the if statement it returns false. Anyone know why it is returning false?