Is there a way to lock a Mysql table only for write, so that another script can still make a SELECT query?
I'm using this code to write to a table (executes almost every second):
mysql_query("LOCK TABLES table WRITE;");
mysql_query("insert into...
mysql_query("UNLOCK TABLES;");
and this to select (this script just freezes, probably because of the lock):
mysql_query("select * from...
Thanks.