SQL evaluates to true when it should not

veniamen

New Member
I have this SQL code\[code\]$passwordQuery = mysql_query("UPDATE `Medarbejder` SET `password` = '$password' WHERE `login` = '$login' AND `password` = '$oldPassword'")or die(mysql_error()); if($passwordQuery){\[/code\]And no matter if $oldPassword is equal to \[code\]password\[/code\] or not, it evaluates to true, which is rather annoying and I cannot figure out why.
 
Top