Oracle 5.0 Reference Manual page 2420

Table of Contents

Advertisement

Return Values
Returns number of ready connections upon success,
Examples
Example 20.135. A
<?php
$link1 = mysqli_connect();
$link1->query("SELECT 'test'", MYSQLI_ASYNC);
$all_links = array($link1);
$processed = 0;
do {
$links = $errors = $reject = array();
foreach ($all_links as $link) {
$links[] = $errors[] = $reject[] = $link;
}
if (!mysqli_poll($links, $errors, $reject, 1)) {
continue;
}
foreach ($links as $link) {
if ($result = $link->reap_async_query()) {
} else die(sprintf("MySQLi Error: %s", mysqli_error($link)));
$processed++;
}
} while ($processed < count($all_links));
?>
The above example will output:
Array
(
[0] => test
)
See Also
mysqli_query
mysqli_reap_async_query
20.7.3.9.38. mysqli::prepare,
Copyright 1997-2012 the PHP Documentation Group. [2230]
mysqli::prepare
mysqli_prepare
Prepare an SQL statement for execution
Description
Object oriented style
mysqli_stmt mysqli::prepare(
string query);
MySQL Improved Extension (Mysqli)
mysqli_poll
print_r($result->fetch_row());
if (is_object($result))
mysqli_free_result($result);
mysqli_prepare
FALSE
example
2400
otherwise.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the 5.0 and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Mysql 5.0

Table of Contents