Oracle 5.0 Reference Manual page 2424

Table of Contents

Advertisement

mysqlnd
"server has gone away".
libmysqlclient
message means "server has gone away".
Parameters
link
query
resultmode
Return Values
Returns
on failure. For successful
FALSE
will return a
mysqli_query
will return
.
TRUE
Changelog
Version
5.3.0
Examples
Example 20.137.
mysqli::query
Object oriented style
<?php
$mysqli = new mysqli("localhost", "my_user", "my_password", "world");
/* check connection */
if ($mysqli->connect_errno) {
printf("Connect failed: %s\n", $mysqli->connect_error);
exit();
}
/* Create table doesn't return a resultset */
if ($mysqli->query("CREATE TEMPORARY TABLE myCity LIKE City") === TRUE) {
printf("Table myCity successfully created.\n");
}
/* Select queries return a resultset */
if ($result = $mysqli->query("SELECT Name FROM City LIMIT 10")) {
printf("Select returned %d rows.\n", $result->num_rows);
MySQL Improved Extension (Mysqli)
on Windows returns an error code 2006. This error message means
on all platforms returns an error code 2006. This error
Procedural style only: A link identifier returned by
mysqli_connect
The query string.
Data inside the query should be
Either the constant
MYSQLI_STORE_RESULT
default,
MYSQLI_STORE_RESULT
If you use
MYSQLI_USE_RESULT
return error
Commands out of sync
mysqli_free_result
With
MYSQLI_ASYNC
perform query asynchronously.
results from such queries.
SELECT, SHOW, DESCRIBE
object. For other successful queries
mysqli_result
example
2404
or
mysqli_init
properly
MYSQLI_USE_RESULT
depending on the desired behavior. By
is used.
all subsequent calls will
(available with mysqlnd), it is possible to
mysqli_poll
or
Description
Added the ability of async queries.
escaped.
or
unless you call
is then used to get
queries
EXPLAIN
mysqli_query

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