ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:reference:connection:starttrans

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
reference:starttrans [2015/08/07 03:11] – created mnewnhamv5:reference:connection:starttrans [2016/08/13 19:06] (current) mnewnham
Line 1: Line 1:
 ====== startTrans ====== ====== startTrans ======
 ~~NOTOC~~ ~~NOTOC~~
-<WRAP right box>+<WRAP right box 300px>
 == See Also == == See Also ==
  
-[[reference:completetrans|completeTrans()]] +[[v5:reference:connection:completetrans|completeTrans()]]\\ 
- +[[v5:reference:connection:failtrans|failTrans()]]\\
-[[reference:rollbacktrans|rollbackTrans()]]+
  
 == Syntax == == Syntax ==
-  void startTrans()+  void startTrans( 
 +     optional string $monitorFn 
 +     )
 </WRAP> </WRAP>
 ===== Description ===== ===== Description =====
-The function ''startTrans()'' begins a **smart transaction** +The function ''startTrans()'' begins a **smart transaction**.  
 + 
 +The optional monitor function is called when a transaction fails. This monitor function can be used to control the behaviour of a transaction if it fails. The default for this function if not set is ''ADODB_TransMonitor'' which is located in the ''adodb.inc.php'' file. 
 + 
 +-------------------------------------
 ===== Usage ===== ===== Usage =====
 <code php> <code php>
Line 20: Line 25:
 $db->startTrans(); $db->startTrans();
 </code> </code>
- +{{tag>["Smart Transactions"]}}
v5/reference/connection/starttrans.1438909898.txt.gz · Last modified: 2017/04/21 11:32 (external edit)