PDO::commit
(PHP 5 >= 5.1.0, PECL pdo:0.1-1.0.3)
PDO::commit —
Commits a transaction
Description
bool PDO::commit
( void
)
Return Values
Returns TRUE on success or FALSE on failure.
Examples
Example #1 Commit a transaction
<?php
$dbh->beginTransaction();
$sth = $dbh->exec("DROP TABLE fruit");
$dbh->commit();
?>