Error!
You're current password does not match actual entry in the database, try again!"; include 'TPGP_ChangePassword.htm'; exit(); } else { // everything is going smoothly, update password $query = "UPDATE users SET password='$newpw' WHERE username='$usename'"; $result = mysql_query($query); if(!$result){ // theres been a mix up, error handling echo "Error!
Your password can not be changed. Please Contact Turning Point at Granita Park."; exit(); } else { // display the good stuff! echo "Your Password has been successfully changed!
Logout and try your new password!"; exit(); } } } ?>