v5:reference:connection:hasfailedtrans
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
reference:hasfailedtrans [2015/12/29 20:22] – mnewnham | v5:reference:connection:hasfailedtrans [2016/03/19 03:23] (current) – mnewnham | ||
---|---|---|---|
Line 3: | Line 3: | ||
<WRAP right box> | <WRAP right box> | ||
== See Also == | == See Also == | ||
- | [[userguide: | + | [[v5:userguide: |
== Syntax == | == Syntax == | ||
bool hasFailedTrans() | bool hasFailedTrans() | ||
</ | </ | ||
===== Description ===== | ===== Description ===== | ||
- | The function '' | + | The function '' |
===== Usage ===== | ===== Usage ===== | ||
<code php> | <code php> | ||
- | $db->beginTrans() | + | $db->startTrans() |
/* | /* | ||
* Table updates, correct? | * Table updates, correct? | ||
*/ | */ | ||
if ($db-> | if ($db-> | ||
+ | { | ||
/* | /* | ||
* Do something | * Do something | ||
- | * / | + | */ |
+ | } | ||
+ | $db-> | ||
</ | </ | ||
{{tag> | {{tag> |
v5/reference/connection/hasfailedtrans.1451416949.txt.gz · Last modified: 2017/04/21 11:34 (external edit)