You are here

function views_plugin_query_default::db_query in Views (for Drupal 7) 6.3

Wrapper method for db_query().

Parameters

$query: A string containing an SQL query.

$args: An array containing the query arguments.

Return value

A database query result resource, or FALSE if the query was not executed correctly.

1 call to views_plugin_query_default::db_query()
views_plugin_query_default::execute in plugins/views_plugin_query_default.inc
Executes the query and fills the associated view object with according values.

File

plugins/views_plugin_query_default.inc, line 1229
views_plugin_query_default.inc Defines the default query object which builds SQL to execute using the Drupal database API.

Class

views_plugin_query_default
Object used to create a SELECT query.

Code

function db_query($query, $args = array()) {
  return db_query($query, $args);
}