| 5 database.pgsql.inc | db_fetch_object($result) |
| 5 database.mysql.inc | db_fetch_object($result) |
| 5 database.mysqli.inc | db_fetch_object($result) |
| 6 database.mysql.inc | db_fetch_object($result) |
| 6 database.pgsql.inc | db_fetch_object($result) |
| 6 database.mysqli.inc | 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. The attributes of this object are the table fields selected by the query.
Related topics
198 calls to db_fetch_object()
File
- includes/
database.pgsql.inc, line 158 - Database interface code for PostgreSQL database servers.
Code
function db_fetch_object($result) {
if ($result) {
return pg_fetch_object($result);
}
}
Login or register to post comments