function db_fetch_object

6.x db_fetch_object($result)
6.x db_fetch_object($result)
6.x db_fetch_object($result)

Fetch one result row from the previous query as an object.


$result: A database query result resource, as returned from db_query().

Return value

An object representing the next row of the result, or FALSE. The attributes of this object are the table fields selected by the query.

Related topics

183 calls to db_fetch_object()
actions_do in drupal-6.x/includes/
Perform a given list of actions by executing their callback functions.
actions_get_all_actions in drupal-6.x/includes/
Retrieves all action instances from the database.
actions_load in drupal-6.x/includes/
Retrieve a single action from the database.
actions_synchronize in drupal-6.x/includes/
Synchronize actions that are provided by modules.
aggregator_block in drupal-6.x/modules/aggregator/aggregator.module
Implementation of hook_block().

... See full list


drupal-6.x/includes/, line 173
Database interface code for PostgreSQL database servers.


function db_fetch_object($result) {
  if ($result) {
    return pg_fetch_object($result);