This is my query: "UPDATE users SET password=PASSWORD('".$POST["newpassword"]."') WHERE username='".$username."' AND password=PASSWORD('".$POST["oldpassword"]."')"
Immediately after, I use:
if (mysql_num_rows($result) >= 1) { }
The mysql_query does not print out an error, but mysql_num_rows says $result is not a valid MySQL result. Everything inside is working correctly--I have echoed out the query, and it appears fine.
I've tried putting the PASSWORD() functions inside quotes, but that returned an error using mysql_query().
Any clues? I'm not the best at databases...