mysql_fetch_row(result)

Description: Fetches one row of data from the resultset associated with the identifier result, returning a numerical array.

Each call to mysql_fetch_row() fetches the next row of data from the resultset. When there are no more rows, it returns FALSE.

Example:

while ($row = mysql_fetch_row ($result)) {
    echo "$row[0], $row[1], $row[2]<BR>\n";
}

See also: mysql_fetch_array(), mysql_fetch_object()

Get Sams Teach Yourself MySQL in 21 Days, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.