function db_result

7.x db.inc db_result($res)
6.x db.inc db_result($res)
5.x db.inc db_result($res)

Returns back the first result from a resource_handler.

65 calls to db_result()
admin.degrees.inc in modules/admin/admin.degrees.inc
admin.module in modules/admin/admin.module
The administrative configurations for FlightPath.
admin_duplicate_year_form_submit in modules/admin/admin.module
This function will set up a batch operation so we can duplicate an entire year with less chance of time or memory running out.
admin_edit_degree_form_submit in modules/admin/admin.degrees.inc
alerts.module in modules/alerts/alerts.module
module file for Alerts

... See full list

File

includes/db.inc, line 749
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;
}