You are here

function db_fetch_object in Drupal 5

Same name in this branch
  1. 5 includes/database.mysqli.inc \db_fetch_object()
  2. 5 includes/database.mysql.inc \db_fetch_object()
  3. 5 includes/database.pgsql.inc \db_fetch_object()
Same name and namespace in other branches
  1. 4 includes/database.mysqli.inc \db_fetch_object()
  2. 4 includes/database.mysql.inc \db_fetch_object()
  3. 4 includes/database.pgsql.inc \db_fetch_object()
  4. 6 includes/database.mysqli.inc \db_fetch_object()
  5. 6 includes/database.mysql.inc \db_fetch_object()
  6. 6 includes/database.pgsql.inc \db_fetch_object()

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

Parameters

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

Return value

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

Related topics

192 calls to db_fetch_object()
aggregator_block in modules/aggregator/aggregator.module
Implementation of hook_block().
aggregator_form_category_validate in modules/aggregator/aggregator.module
Validate aggregator_form_feed form submissions.
aggregator_form_feed in modules/aggregator/aggregator.module
Generate a form to add/edit feed sources.
aggregator_form_feed_validate in modules/aggregator/aggregator.module
Validate aggregator_form_feed form submissions.
aggregator_page_categories in modules/aggregator/aggregator.module
Menu callback; displays all the categories used by the aggregator.

... See full list

File

includes/database.mysql.inc, line 187
Database interface code for MySQL database servers.

Code

function db_fetch_object($result) {
  if ($result) {
    return mysql_fetch_object($result);
  }
}