| Versionen | |
|---|---|
| drupal6 | db_fetch_object( |
| drupal7 | db_fetch_object(DatabaseStatementInterface $statement) |
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, or FALSE. The attributes of this object are the table fields selected by the query.
includes/
<?php
function db_fetch_object($result) {
if ($result) {
return pg_fetch_object($result);
}
}
?>
Kommentare
Kommentar hinzufügen