title: Server version error when using mysqli_begin_transaction()
body: <p>I am building an application using a local server (Xammp). First I turn off  default autocommitt before beginning a transaction like so:</p>
  
  <pre><code>      if($condition == true){
        mysqli_autocommit($mysqli, FALSE);//disabling default autocommit
        // Starting transaction for read and write  
        mysqli_begin_transaction($mysqli, MYSQLI_TRANS_START_READ_WRITE);
        //....Update table
         mysqli_commit($mysqli);//commit records to database
         }else {
           mysqli_rollback($mysqli);}
  </code></pre>
  
  <p>If I click a button, I am getting the error message telling me that my server version does not support <code>mysqli_begin_transaction()</code> minimum required is <code>5.6.5</code>.Tf i check in the database the results are as expected except that the user is not redirected anywhere,the browser displays this error message</p>
  
  <blockquote>
    <p>Warning: mysqli_begin_transaction(): This server version doesn't support 'READ WRITE' and 'READ ONLY'. Minimum 5.6.5 is required in C:\xampp\htdocs\wezhira\foo.php on line 38</p>
  </blockquote>
  
  <p>Is there anyone who can help me on how to upgrade my server to test my application any links blogs or articles will be helpful,secondly,Will this error disappear if I use a live server.I have seen some solutions here on Stackoverflow suggesting that <code>mysqli_begin_transaction()</code>can be replaced by <code>mysqli_autocommit($mysqli, FALSE);</code> How true is this statement?</p>