mysql_fetch_object(result_id)
This function returns the next result row from result_id in the form of an object, and advances the internal row pointer of the result set to the next row. Column values for the row become accessible as named properties of the object (e.g. $row->user for the value of the user field in the $row object).