In PHP >= 5.5.0 you start and execute a transaction by using:
$mysqli->begin_transaction();
$mysqli->commit();
In PHP < 5.5.0 you commit database modifications by using:
$mysqli->autocommit(false);
$mysqli->autocommit(true);
In PHP >= 5.5.0 you start and execute a transaction by using:
$mysqli->begin_transaction();
$mysqli->commit();
In PHP < 5.5.0 you commit database modifications by using:
$mysqli->autocommit(false);
$mysqli->autocommit(true);