mysqli_autocommit() function turns on or off automatic submission of database modifications.
Tips: Please take a look at the mysqli_commit() function, which is used to commit the current transaction of the specified database connection. Please see the mysqli_rollback() function for rolling back the current transaction.
Parameter | Description |
---|---|
connection | Required. Specifies the MySQL connection to use. |
mode | Required. If set to FALSE, auto-commit is turned off. If set to TRUE, auto-commit is turned on (committing any pending queries). |
Return value: | Returns TRUE if successful and FALSE if failed. |
---|---|
PHP version: | 5+ |
Turn off auto-submit, do some queries, then submit the query:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
|
Original address: http://www.manongjc.com/article/1204.html