ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:reference:connection:committrans

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
v5:reference:connection:committrans [2017/04/21 11:50]
127.0.0.1 external edit
v5:reference:connection:committrans [2018/06/11 10:23] (current)
dregad [Usage] function names starting with lowercase (#426)
Line 10: Line 10:
 ===== Usage ===== ===== 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();
     ​     ​
 </​code>​ </​code>​
  
v5/reference/connection/committrans.txt · Last modified: 2018/06/11 10:23 by dregad