mysql_fetch_array

array mysql_fetch_array(mysql result result_handle, [int result_type]) 
result_handle Result handle returned by mysql_db_query() or mysql_query()
result_type Integer flag indicating the type of array to return

Fetches a row of data as an array from a MySQL result handle.

Returns:

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

Description:

mysql_fetch_array() retrieves a row of data from a result handle returned by mysql_db_query() or mysql_query(). Depending on the value of the result_type argument, the row is returned as an associative array, a numerically indexed array, or both (the default). result_type can be set to one of the following constants: MYSQL_ASSOC, MYSQL_NUM, or MYSQL_BOTH ...

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.