PECL CUBRID >= 8.3.0
cubrid_commit - Commit a transaction
Code Examples

cubrid_commit( resource$conn_identifier ): bool

The cubrid_commit function is used to execute commit on the transaction pointed by conn_identifier, currently in progress. Connection to the server is closed after the cubrid_commit function is called; However, the connection handle is still valid.

In CUBRID PHP, auto-commit mode is disabled by default for transaction management. You can set it by using cubrid_set_autocommit. You can get its status by using cubrid_get_autocommit. Before you start a transaction, remember to disable the auto-commit mode.



Connection identifier.

Return Values

Returns true on success or false on failure.

Related Functions

Example of cubrid_commit

Show all examples for cubrid_commit

PHP Version:

Function cubrid_commit:

CUBRID Functions

Most used PHP functions