mixed rollback ()
mixed rollback
Rolls back the current transaction.
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 rollback()
<?php // Once you have a valid DB object named $db... // ... need to produce example ... ?>
commit(), autoCommit()