function db_result

6.x db.inc db_result($res)
4.x db.inc db_result($resource_handler)
5.x db.inc db_result($res)

Returns back the first result from a resource_handler.

47 calls to db_result()
admin_edit_degree_form_submit in modules/admin/admin.degrees.inc
alerts_get_alert_count_by_type in modules/alerts/alerts.module
Implements hook_get_count_for_alert_type
calendar_find_and_remind_notify_upcoming_appointments in modules/calendar/calendar.module
This function will find appointments approaching within X number of minutes, and send out notifications to all involved.
content_add_new_uploaded_file in modules/content/content.module
bool_replace_existing means should we replace an existing file (based on filename) with this new one? Instead of creating an INSERT, that is.
content_get_last_access in modules/content/content.module
Returns the timestamp of last access, or ZERO if never accessed

... See full list

File

includes/db.inc, line 728
This file contains mostly db shortcuts.

Code

function db_result($res) {

  if (is_object($res)) {
    return $res->fetchColumn(); // fetches the first value returned.
  }

  return NULL;
}