Commits the current transaction.
bool obj_commit ( void )
True on success or false on failure.
<?php
try
{
    $trans = $dbh->obj_transaction();
    
    $data = array( "color" => "blue",
                   "type"  => "leather",
                   "price" => 36.95 );
                   
    $rs = $dbh->obj_update( "products", $data, "prod_id=21" );
    
    if ( $dbh->obj_error() )
        $trans->obj_rollback();
        
    $trans->obj_commit();    
}
catch ( Exception $e ) 
{
    //log error and/or redirect user to error page
}
?>
				See also: obj_rollback, obj_savepoint