Oracle 5.0 Reference Manual page 2752

Table of Contents

Advertisement

printf("%s returns %s\n", __METHOD__, var_export($ret, true));
return $ret;
}
}
mysqlnd_uh_set_connection_proxy(new proxy());
printf("connect...\n");
$mysqli = new mysqli("localhost", "root", "", "test");
printf("query...\n");
$mysqli->query("PLEASE_LET_THIS_BE_INVALID_SQL");
printf("errno...\n");
var_dump($mysqli->errno);
printf("close...\n");
$mysqli->close();
?>
The above example will output:
connect...
proxy::getErrorNumber(array (
0 => NULL,
))
proxy::getErrorNumber returns 0
query...
errno...
proxy::getErrorNumber(array (
0 => NULL,
))
proxy::getErrorNumber returns 1064
int(1064)
close...
See Also
mysqlnd_uh_set_connection_proxy
MysqlndUhConnection::getErrorString
mysqli_errno
mysql_errno
20.7.8.7.10.
MysqlndUhConnection::getErrorString
Copyright 1997-2012 the PHP Documentation Group. [2230]
MysqlndUhConnection::getErrorString
Returns a string description of the last error
Description
public string MysqlndUhConnection::getErrorString(
mysqlnd_connection connection);
Returns a string description of the last error.
Parameters
connection
Return Values
Error string for the most recent function call.
Examples
Mysqlnd user handler plugin (mysqlnd_uh)
Mysqlnd connection handle. Do not modify!
2732

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents