Oracle 5.0 Reference Manual page 2475

Table of Contents

Advertisement

/* retrieve all rows from myCity */
$query = "SELECT Name, CountryCode, District FROM myCity";
if ($result = mysqli_query($link, $query)) {
while ($row = mysqli_fetch_row($result)) {
printf("%s (%s,%s)\n", $row[0], $row[1], $row[2]);
}
/* free result set */
mysqli_free_result($result);
}
/* remove table */
mysqli_query($link, "DROP TABLE myCity");
/* close connection */
mysqli_close($link);
?>
The above examples will output:
Stuttgart (DEU,Baden-Wuerttemberg)
Bordeaux (FRA,Aquitaine)
See Also
mysqli_prepare
mysqli_stmt_bind_param
20.7.3.10.12. mysqli_stmt::fetch,
Copyright 1997-2012 the PHP Documentation Group. [2230]
mysqli_stmt::fetch
mysqli_stmt_fetch
Fetch results from a prepared statement into the bound variables
Description
Object oriented style
bool mysqli_stmt::fetch();
Procedural style
bool mysqli_stmt_fetch(
mysqli_stmt stmt);
Fetch the result from a prepared statement into the variables bound by mysqli_stmt_bind_result.
Parameters
MySQL Improved Extension (Mysqli)
mysqli_stmt_fetch
Note
Note that all columns must be bound by the application before calling
mysqli_stmt_fetch.
Note
Data are transferred unbuffered without calling
which can decrease performance (but reduces memory cost).
mysqli_stmt_store_result
2455

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

Subscribe to Our Youtube Channel

This manual is also suitable for:

Mysql 5.0

Table of Contents