db_fetch_object($result)
drupal/includes/database.mysqli.inc, line 125
Fetch one result row from the previous query as an object.
$result A database query result resource, as returned from db_query().
An object representing the next row of the result. The attributes of this object are the table fields selected by the query.
| Name | Description |
|---|---|
| Database abstraction layer | Allow the use of different database servers using the same code base. |
function db_fetch_object($result) {
if ($result) {
return mysqli_fetch_object($result);
}
}