v5:reference:connection:committrans
This is an old revision of the document!
commitTrans
Syntax
void commitTrans()
Descriptions
The function commitTrans()
commits a granular transaction. This function is not part of the smart transaction set, you must verify that all transactional statements within the transaction scope have completed correctly.
Usage
$conn->beginTrans(); $ok = $conn->execute($sql); if ($ok) $ok = $conn->execute($sql2); if (!$ok) $conn->rollbackTrans(); else $conn->commitTrans();
v5/reference/connection/committrans.1528705437.txt.gz · Last modified: 2018/06/11 10:23 by dregad