Hello, i wonder if anyone can help me.
I'm still new to php and mysql, so i'm not sure how bad this code is, but i'll give it a shot:
if ($submit == "change") {
if (($username == $gebruiker->username) && ($password == $gebruiker->password)) {
if ($HTTP_POST_VARS["newpass1"] == $HTTP_POST_VARS["newpass2"]) {
//mysql_query ("SELECT * FROM users WHERE username = '$username' FOR UPDATE")
mysql_query ("UPDATE users SET password = '$newpass1' WHERE username = '$username'");
} else echo "de twee wachtwoorden komen niet overeen.":
}else echo"u bent niet gemachtigd om dit te wijzigen,
of uw wachtwoord is niet correct":
}
so, i'm trying to update a password in the database, but i keep getting a parse error. I just can't seem to find it.
hope someone can!
- Stinger