Oracle 5.0 Reference Manual page 2289

Table of Contents

Advertisement

Parameters
result
Return Values
Returns an numerical array of strings that corresponds to the fetched row, or
more rows.
mysql_fetch_row
identifier. The row is returned as an array. Each result column is stored in an array offset, starting at
offset 0.
Examples
Example 20.47. Fetching one row with
<?php
$result = mysql_query("SELECT id,email FROM people WHERE id = '42'");
if (!$result) {
echo 'Could not run query: ' . mysql_error();
exit;
}
$row = mysql_fetch_row($result);
echo $row[0]; // 42
echo $row[1]; // the email value
?>
Notes
See Also
mysql_fetch_array
mysql_fetch_assoc
mysql_fetch_object
mysql_data_seek
mysql_fetch_lengths
mysql_result
20.7.2.5.19.
mysql_field_flags
Copyright 1997-2012 the PHP Documentation Group. [2230]
mysql_field_flags
Get the flags associated with the specified field in a result
Original MySQL API (Mysql)
The result resource that is being evaluated. This result comes from
a call to mysql_query.
fetches one row of data from the result associated with the specified result
mysql_fetch_row
Note
This function sets NULL fields to the PHP
Warning
This extension is deprecated as of PHP 5.5.0, and will be removed in the
future. Instead, the
MySQLi
also
MySQL: choosing an API
Alternatives to this function include:
mysqli_fetch_fields
NULL
or
PDO_MySQL
extension should be used. See
guide and
related FAQ
[flags]
2269
if there are no
FALSE
value.
for more information.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents