| Versions | |
|---|---|
| 4.7 – 6 | db_fetch_object($result) |
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.
drupal/
<?php
function db_fetch_object($result) {
if ($result) {
return mysql_fetch_object($result);
}
}
?>