CUBRID Функции
PHP Manual

cubrid_commit

(PECL CUBRID >= 8.3.0)

cubrid_commitIs used to execute commit on the transaction

Описание

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

Список параметров

conn_identifier

Connection identifier.

Возвращаемые значения

TRUE, when process is successful.

FALSE, when process is unsuccessful.

Примеры

Пример #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);
   }
}
?>

Смотрите также


CUBRID Функции
PHP Manual