Oracle 5.0 Reference Manual page 2751

Table of Contents

Advertisement

return $ret;
}
}
mysqlnd_uh_set_connection_proxy(new proxy());
$mysqli = new mysqli("localhost", "root", "", "test");
$mysqli->query("DROP TABLE IF EXISTS test");
$mysqli->query("CREATE TABLE test(id INT)");
$mysqli->query("INSERT INTO test(id) VALUES (1)");
var_dump($mysqli->affected_rows);
?>
The above example will output:
proxy::getAffectedRows(array (
0 => NULL,
))
proxy::getAffectedRows returns 1
int(1)
See Also
mysqlnd_uh_set_connection_proxy
mysqli_affected_rows
mysql_affected_rows
20.7.8.7.9.
MysqlndUhConnection::getErrorNumber
Copyright 1997-2012 the PHP Documentation Group. [2230]
MysqlndUhConnection::getErrorNumber
Returns the error code for the most recent function call
Description
public int MysqlndUhConnection::getErrorNumber(
mysqlnd_connection connection);
Returns the error code for the most recent function call.
Parameters
connection
Return Values
Error code for the most recent function call.
Examples
MysqlndUhConnection::getErrorNumber
space API call which maps directly to it but also called internally.
Example 20.344.
<?php
class proxy extends MysqlndUhConnection {
public function getErrorNumber($res) {
printf("%s(%s)\n", __METHOD__, var_export(func_get_args(), true));
$ret = parent::getErrorNumber($res);
Mysqlnd user handler plugin (mysqlnd_uh)
Mysqlnd connection handle. Do not modify!
MysqlndUhConnection::getErrorNumber
is not only executed after the invocation of a user
example
2731

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents