Oracle 5.0 Reference Manual page 2779

Table of Contents

Advertisement

Return Values
Returns
TRUE
Examples
Example 20.364.
<?php
class proxy extends MysqlndUhConnection {
public function ping($res) {
printf("%s(%s)\n", __METHOD__, var_export(func_get_args(), true));
$ret = parent::ping($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->ping();
?>
The above example will output:
proxy::ping(array (
0 => NULL,
))
proxy::ping returns true
See Also
mysqlnd_uh_set_connection_proxy
mysqli_ping
mysql_ping
20.7.8.7.30.
MysqlndUhConnection::query
Copyright 1997-2012 the PHP Documentation Group. [2230]
MysqlndUhConnection::query
Performs a query on the database
Description
public bool MysqlndUhConnection::query(
mysqlnd_connection connection,
string query);
Performs a query on the database (COM_QUERY).
Parameters
connection
query
Return Values
Returns
TRUE
Mysqlnd user handler plugin (mysqlnd_uh)
on success. Otherwise, returns
MysqlndUhConnection::ping
Mysqlnd connection handle. Do not modify!
The query string.
on success. Otherwise, returns
FALSE
example
FALSE
2759

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents