Update password
I've tried several variations but I can't get any of them to execute.
If someone can tell me what's wrong with this I'd be grateful -
~~~~~~~~~~~~~~~~~
if ($stmt = $mysqli->prepare("UPDATE members (password, salt) VALUES (?,?) WHERE email = ?"))
{
$stmt->bind_param('sss', $newpassword,$random_salt,$email);
// Execute the prepared query.
$stmt->execute();
header("Location: ../secure/changepass.php?success=1'");
}
else {
header("Location: ../secure/changepass.php?passwordfailed=1'");
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Thanks!!
