Same name in this branch
- 4.6.x includes/database.pgsql.inc \db_fetch_object()
- 4.6.x includes/database.mysql.inc \db_fetch_object()
Same name and namespace in other branches
- 4.7.x includes/database.pgsql.inc \db_fetch_object()
- 4.7.x includes/database.mysqli.inc \db_fetch_object()
- 4.7.x includes/database.mysql.inc \db_fetch_object()
- 5.x includes/database.pgsql.inc \db_fetch_object()
- 5.x includes/database.mysqli.inc \db_fetch_object()
- 5.x includes/database.mysql.inc \db_fetch_object()
- 6.x includes/database.pgsql.inc \db_fetch_object()
- 6.x includes/database.mysqli.inc \db_fetch_object()
- 6.x includes/database.mysql.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
40 calls to db_fetch_object()
- aggregator_page_category in modules/
aggregator.module - Menu callback; displays all the items aggregated in a particular category.
- aggregator_page_source in modules/
aggregator.module - Menu callback; displays all the items captured from a particular feed.
- aggregator_parse_feed in modules/
aggregator.module - book_load in modules/
book.module - Implementation of hook_load().
- book_location in modules/
book.module - Return the path (call stack) to a certain book page.
File
- includes/
database.pgsql.inc, line 75 - Database interface code for PostgreSQL database servers.
Code
function db_fetch_object($result) {
if ($result) {
return pg_fetch_object($result);
}
}