bool mysqli::autocommit ( bool $mode )
bool mysqli_autocommit ( mysqli $link , bool $mode )
The mysqli_autocommit() function turns on or off auto-committing database modifications.
Turns on or off auto-commit mode on queries for the database connection.
To determine the current state of autocommit use the SQL command SELECT @@autocommit.
Parameter | Description |
---|---|
link | Procedural style only: A link identifier returned by mysqli_connect() or mysqli_init() |
mode | Whether to turn on auto-commit or not. |
Returns TRUE on success or FALSE on failure.