mysql_fetch_array(result_id[, array_type])
This function fetches the next row of a MySQL result set, and then advances the internal row pointer of the result set to the next row. It returns the row as an associative array, a numeric array, or both, depending on the value of array_type.
When array_type is not specified, or set to MYSQL_BOTH, each field in the row will be given a numerical index ($row[0]) as well as a string index ($row['col_name']) in the returned array. MYSQL_NUM causes only numerical indices to be assigned, while MYSQL_ASSOC assigns only string indices.
This function returns false if there are no rows left in the specified result set.