PHP mysqli_autocommit() turns on or off auto-committing database modifications. To determine the current state of autocommit use the SQL command SELECT @@autocommit.
Syntax
Parameter | Description |
---|---|
Connection : | Required parameter. The MySQL connection to be used |
mode : | Required parameter. FALSE turns auto-commit off. TRUE turns auto-commit on. |
Return Values : | Returns TRUE on success or FALSE on failure. |