SQL query error (near 'LIMIT 1')

admin

Administrator
Staff member
Hi,

I wrote this query:

query = "UPDATE tablename SET status='$status' WHERE ckey='$ckey' LIMIT 1";

and when I run it, it says this:

You have an error in your SQL syntax near 'LIMIT 1' at line 1


Thanx in advance,
Ilir.
 
Back
Top