Oracle 5.0 Reference Manual page 2802

Table of Contents

Advertisement

mysqlnd_connection connection);
Commits the current transaction.
Parameters
connection
Return Values
Returns
TRUE
Examples
Example 20.383.
<?php
class proxy extends MysqlndUhConnection {
public function txCommit($res) {
printf("%s(%s)\n", __METHOD__, var_export(func_get_args(), true));
$ret = parent::txCommit($res);
printf("%s returns %s\n", __METHOD__, var_export($ret, true));
return $ret;
}
}
mysqlnd_uh_set_connection_proxy(new proxy());
$mysqli = new mysqli("localhost", "root", "", "test");
$mysqli->commit();
?>
The above example will output:
proxy::txCommit(array (
0 => NULL,
))
proxy::txCommit returns true
See Also
mysqlnd_uh_set_connection_proxy
mysqli_commit
20.7.8.7.50.
MysqlndUhConnection::txRollback
Copyright 1997-2012 the PHP Documentation Group. [2230]
MysqlndUhConnection::txRollback
Rolls back current transaction
Description
public bool MysqlndUhConnection::txRollback(
mysqlnd_connection connection);
Rolls back current transaction.
Parameters
connection
Mysqlnd user handler plugin (mysqlnd_uh)
Mysqlnd connection handle. Do not modify!
on success. Otherwise, returns
MysqlndUhConnection::txCommit
Mysqlnd connection handle. Do not modify!
FALSE
example
2782

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents