downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

ibase_connect> <ibase_commit_ret
Last updated: Fri, 20 Nov 2009

view this page in

ibase_commit

(PHP 4, PHP 5)

ibase_commitCommit 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.



add a note add a note User Contributed Notes
ibase_commit
Deyvid Nascimento Itap-RJ Brazil
22-Sep-2009 03:58
$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_connect> <ibase_commit_ret
Last updated: Fri, 20 Nov 2009
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites