post here such a request:
$update="LOCK TABLES users_cash WRITE;"; $update.="UPDATE users_cash SET end='1' WHERE id='48';"; $update.="UPDATE users_cash SET end='1' WHERE id='45';"; $update.="UPDATE users_cash SET end='1' WHERE id='75';"; $update.="UPDATE users_cash SET end='1' WHERE id='77';"; $update.="UNLOCK TABLES;"; mysql_query($update); It produces the following error:
You have an error in your SQL syntax; If you’re on the right side, you’ll find out what you’re using for your users. SET end = '1' WHERE id = '48 '; UPDATE users_cash SET end =' 1 'WHERE' at line 1
What's my mistake?