mysql_fetch_object

object mysql_fetch_object(mysql result result_handle, [int result_type]) 
result_handle Result handle returned by mysql_db_query() or mysql_query()
result_type Result explanation goes here

Fetches a row of data from a result handle and returns it as an object.

Returns:

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

Description:

mysql_fetch_object() retrieves a row of data from a result handle returned by mysql_db_query() or mysql_query(). The data is returned as an object. After the data is retrieved, the result handle’s internal pointer is advanced one position.

The column names are used as property names for the object. If column names are duplicated, the data in the last column in the query ...

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.