Hi,
you need to use this statement after database connection.
$query=mysql_query($databasename,"LOCK TABLES <tablename>");
hopefully it will work.
regards
manish
Krishna Srinivasan wrote:
Hi,
How can I lock a MySQL table in PHP before inserting data into it. It is possible to lock tables from the MySQL command line but, I am interested in doing the same from a PHP script.
Thanks in advance.
Krishna.