v5:reference:connection:begintrans
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
reference:begintrans [2015/08/07 05:01] – created mnewnham | v5:reference:connection:begintrans [2018/06/11 10:15] (current) – [Usage] function names starting with lowercase (#426) dregad | ||
---|---|---|---|
Line 5: | Line 5: | ||
void beginTrans() | void beginTrans() | ||
</ | </ | ||
+ | ===== Descriptions ===== | ||
+ | The function '' | ||
+ | --------------------------------- | ||
+ | ===== Usage ===== | ||
<code php> | <code php> | ||
- | $conn->BeginTrans(); | + | $conn->beginTrans(); |
- | $ok = $conn->Execute($sql); | + | $ok = $conn->execute($sql); |
if ($ok) | if ($ok) | ||
- | $ok = $conn->Execute($sql2); | + | $ok = $conn->execute($sql2); |
if (!$ok) | if (!$ok) | ||
- | $conn->RollbackTrans(); | + | $conn->rollbackTrans(); |
else | else | ||
- | $conn->CommitTrans(); | + | $conn->commitTrans(); |
| | ||
</ | </ | ||
v5/reference/connection/begintrans.1438916488.txt.gz · Last modified: 2017/04/21 11:37 (external edit)