$Conn = ibase_connect("your path", "SYSDBA", "masterkey");
//Begin a transaction
$tr = ibase_trans( IBASE_DEFAULT, $Conn );
$Sql01 = "UPDATE CLIENTE SET COUNTRY = 'BRAZIL' WHERE IDCLIENTE = 1";
$Sql02 = "UPDATE CLIENTE SET COUNTRY = 'USA' WHERE IDCLIENTE = 2";
//query wasn't executed
ibase_query($tr, $Sql01);
ibase_query($tr, $Sql02);
//Commit Transaction
ibase_commit($tr);
ibase_commit
(PHP 4, PHP 5)
ibase_commit — Commit a transaction
Description
bool ibase_commit
([ resource $link_or_trans_identifier = NULL
] )
Commits a transaction.
Parameters
- link_or_trans_identifier
-
If called without an argument, this function commits the default transaction of the default link. If the argument is a connection identifier, the default transaction of the corresponding connection will be committed. If the argument is a transaction identifier, the corresponding transaction will be committed.
Return Values
Returns TRUE on success or FALSE on failure.
ibase_commit
Deyvid Nascimento Itap-RJ Brazil
22-Sep-2009 03:58
22-Sep-2009 03:58
