mysql_fetch_row

array mysql_fetch_row(mysql result result_handle) 

Fetches a row of data from a result handle and returns it as an numerically keyed array.

Returns:

Numerically keyed array containing one row of query data; FALSE when out of data or on error

Description:

mysql_fetch_row() retrieves the next row of data from a result handle returned by mysql_db_query() or mysql_query(). The data is returned as a numerically indexed array. After the data is retrieved, the result handle’s internal pointer is advanced one position.

Version:

PHP 3+, PHP 4+

See also:

To find the number of rows affected by a query:

mysql_num_rows() 

To fetch a row of data from a query handle:

mysql_fetch_array() 
mysql_fetch_assoc() 
mysql_fetch_object() 

To fetch ...

Get PHP Functions Essential Reference 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.