v5:reference:connection:hasfailedtrans
This is an old revision of the document!
hasFailedTrans
Description
The function hasFailedTrans()
reports if a smart transaction has failed, or if the failtrans method has been called. The method must be called before completetrans, otherwise it will not report correctly.
Usage
$db->startTrans() /* * Table updates, correct? */ if ($db->hasFailedTrans()) { /* * Do something */ } $db->completeTrans();
v5/reference/connection/hasfailedtrans.1452984838.txt.gz · Last modified: (external edit)