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

search for in the

cubrid_connect_with_url> <cubrid_column_types
Last updated: Fri, 24 Sep 2010

view this page in

cubrid_commit

(PECL CUBRID >= 8.3.0)

cubrid_commitIs used to execute commit on the transaction

Description

int cubrid_commit ( resource $conn_identifier )

The cubrid_commit() function is used to execute commit on the transaction pointed by conn_handle, currently on progress. Connection to the server is closed after the cubrid_commit() function is called; the connection handle is still valid, however.

Parameters

conn_identifier

Connection identifier.

Return Values

TRUE, when process is successful.

FALSE, when process is unsuccessful.

Examples

Example #1 cubrid_commit() example

<?php
$req 
cubrid_execute ($oid"insert into person values (2,’John’)");
if (
$req) {
   
cubrid_close_request ($req);
   if (
$failed) {
      
cubrid_rollback ($con);
   } else {
      
cubrid_commit ($con);
   }
}
?>

See Also



add a note add a note User Contributed Notes
cubrid_commit
There are no user contributed notes for this page.

cubrid_connect_with_url> <cubrid_column_types
Last updated: Fri, 24 Sep 2010
 
 
show source | credits | sitemap | contact | advertising | mirror sites