$result=mysql_query(" UPDATE xxxxxx_users SET User_Password='$Password' WHERE FstName='$First' AND LstName='$Last'",$db) or die ("Password update successful!");
echo "Update failed, unknown user";
This correctly updates db when the first and last name match, and db does not affect when they do not. My only problem is that I always show an โUnsuccessful updateโ error message, unknown. What have I done wrong? Thank.
source
share