hey there,
I have the following PHP code on a password resetting form
.
.
.
if($_POST['fpassword'] == $_POST['fvpassword']) {
$query = "UPDATE " . $tblpref . "members SET password= ( '" . $_POST['fpassword'] . "' ) WHERE `username` =" . $_GET['username'] . ";";
$putdata = mysql_query($query);
echo "<p class=\"success\">Your password has been updated.<br><a href=\"" . $site_url . "/index.php?site=members&area=login\">Login</a></p>";
exit();
} else {
.
.
.
but the password in the database will not be updated while I still get the message that it was.
Is something wrong with the mysql statement or something else in that code?
Thanks in advance
Max