KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
How to lock table for reading and writing with php? Here is what I tried without luck. mysql_query("LOCK TABLES table WRITE;"); mysql_query("LOCK TABLES table READ, WRITE;"); mysql_query("LOCK TABLES table READ WRITE;"); Here is the error I got: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WRITE' at line 1
Tags (comma-separated)
Save Edits
Cancel