I'm working on a website, and I have encountered with an strange MySQL behaviour. I'm trying to use an MySQL Update Query
with multiple WHERE
Clauses.
$name = $_POST['username'];
$updatequery1 = "UPDATE OTP SET 'Project' = 'ANETSignupUsed' WHERE Name = '$name' AND HashedOTP = '$hashedotp' ";
$sqlconnection->query($updatequery1);
die("DONE");
Note that I've already defined $hashedotp
.
When I try doing the same thing in MySQL Console
it works pretty well, and I've made sure that the user
used to define $sqlconnection
has Update
rights.
I've tried solutions DESCRIBED
I've spent hours searching about it, but to no avail.
Thanks a lot in advance!