db_fetch_object

  1. drupal
    1. 4.7 database.mysqli.inc
    2. 4.7 database.pgsql.inc
    3. 4.7 database.mysql.inc
    4. 5 database.mysqli.inc
    5. 5 database.pgsql.inc
    6. 5 database.mysql.inc
    7. 6 database.mysqli.inc
    8. 6 database.pgsql.inc
    9. 6
Versions
4.7 – 6 db_fetch_object($result)

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, or FALSE. The attributes of this object are the table fields selected by the query.

Related topics

Code

drupal/includes/database.mysql.inc, line 150

<?php
function db_fetch_object($result) {
  if ($result) {
    return mysql_fetch_object($result);
  }
}
?>