hi,
in my php code i need to execute the LOCK TABLES mysql query, but how do i check that it succeeded?
can i rely on just doing this:
if (mysql_query("LOCK TABLES myTable READ")) {...}
??
thanks!
checking if LOCK TABLES succeeded
Moderator: General Moderators
-
ElysianEagle
- Forum Newbie
- Posts: 1
- Joined: Tue May 05, 2009 7:06 pm
Re: checking if LOCK TABLES succeeded
http://php.net/manual/en/function.mysql-query.php
This means that you can use "if" statement.For other type of SQL statements, INSERT, UPDATE, DELETE, DROP, etc, mysql_query() returns TRUE on success or FALSE on error.