Oracle 5.0 Reference Manual page 2787

Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents