A Closer Look: Five MySQL functions that handle query results
Assigning variable names to a MySQL result set
After executing a query to select data from a MySQL table there are several functions you can use to perform operations on the retrieved data.
mysql_result() - fetches the contents of the specified cell
mysql_data_seek() - moves to the specified row of a result set
mysql_fetch_array() - fetches the next row in the result set as an array
mysql_fetch_object() - fetches the next row in the result set as an object