I am trying to test the php mysqli autocommit function. I have a very basic example below. When I run this script the query executes and is inserted in the db. Why does this happen, I have commented out the commit portion and therefore would not expect the query to insert into the db.
$db_con=mysqli_connect($server, $dbuname, $dbpassw, $database);
mysqli_autocommit($db_con,FALSE);
mysqli_begin_transaction($db_con);
$sql="INSERT INTO table (a, b, c) VALUES ";
$sql=$sql."('1','2','3')";
mysqli_query($db_con,$sql);
//mysqli_commit($mysqli);
Thanks