Hi!
Can anybody help me with LOCK TABLES?
After locking a table as "read", I cannot write to it. Is seems that I am taken as another thread and denied access.
When trying to insert, I get "Table was locked with a READ lock and can't be updated".
But it was me that locked it just before!
$query = "lock tables Hotels read";
$result = mysql_query($query);
if ($result == 0) {
print "CANNOT LOCK HOTELS";
}
$query = "insert into Hotels ...";
$result = mysql_query($query);
if ($result == 0) {
print "ERROR 2: ".mysql_error();
}