I am having trouble with the syntax of an UPDATE in my Prepared Statement.
Here is what I have...
I started thinking that is incorrect because of $newPass...
Should it maybe be...
I really have no clue on this one?!
Debbie
Here is what I have...
PHP Code:
// Build query.
$r = "UPDATE member
SET pass = SHA1('$newPass')
WHERE email=?";
Should it maybe be...
PHP Code:
// Build query.
$r = "UPDATE member
SET pass = ?
WHERE email=?";
// Prepare statement.
$stmt2 = mysqli_prepare($dbc, $r);
// Bind variable.
mysqli_stmt_bind_param($stmt2, 'ss', $email, SHA1('$newPass'));
Debbie
Comment