v5:reference:connection:rollbacktrans
rollbackTrans
Syntax
void rollbackTrans()
Description
The function rollbackTrans()
forces a roll back of a granular transaction.
Usage
/* * Assume database connection */ $db->startTrans(); /* * some reason to rollback transaction */ if ($someError) $db->rollbackTrans(); else $db->commitTrans()
v5/reference/connection/rollbacktrans.txt · Last modified: 2016/01/17 01:13 by mnewnham