How can there possibly be an error here

AFB

Lifer
Jan 10, 2004
10,718
3
0
$query = "UPDATE users SET email = 'email@domain.com' WHERE username = 'bob';";

 

ohnnyj

Golden Member
Dec 17, 2004
1,239
0
0
Get rid of the ; after the WHERE username = 'bob'

What is the exact error you are getting?
 

AFB

Lifer
Jan 10, 2004
10,718
3
0
Huh, it works now, same exact query.

It was a sytax error too, interesting.