mixed autoCommit ([boolean $onoff = FALSE])
mixed autoCommit
Turns auto-commit on or off.
TRUE to turn auto-commit on. FALSE to turn auto-commit off.
integer - DB_OK on success or a DB_Error object on failure
Table 26-1. Possible PEAR_Error values
This function can not be called statically.
When using MySQL as your DBMS, transactions can only be used when the tables in question use the InnoDB format.
Example 26-1. Using autocommit()
<?php // Once you have a valid DB object named $db... // ... need to produce example ... ?>
commit(), rollback()