if($rows) { $dbh->commit ; } else { $dbh->rollback; }