title: Locking table through php
body: <p>Here is my php code</p>
  
  <pre><code>$LockQuery =  "LOCK Table `customers` WRITE";
  $LockResult= mysqli_query($connection,$LockQuery);
  </code></pre>
  
  <p>When I run this script it doesn't lock customers table but it does in mysql console. It doesnt work in phpmyadmin either.
  So is there any reason for that?
  Here is phpmyadmin example
  <a href="https://i.stack.imgur.com/BX7qp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BX7qp.png" alt="enter image description here"></a></p>
  
  <p>but</p>
  
  <p><a href="https://i.stack.imgur.com/aLK1n.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aLK1n.png" alt="enter image description here"></a></p>