user/pass combination is correct if (mysql_num_rows($result) == 1) { //check new password if ($newpass1 != $newpass2) { header("Location: /error.php?e=6"); exit(); } //update password $query = "update userlist set Password = OLD_PASSWORD('$newpass1') where UserName = '$user'"; mysql_query($query, $connection) or die ("Error in query: $query. " . mysql_error()); if (mysql_affected_rows() != 1) { header("Location: /error.php?e=7"); exit(); } } // user/pass combination is wrong else { header("Location: /error.php?e=4"); exit(); } } ?>

Staff Login -- My Account

Changed Password

Your password has been changed.
Please remember your new password.

This has NOT changed your personal information. Please return to the previous page to update your personal information.