function db_select

cis7 db_select($table, $alias = NULL, array $options = array())
cle7 db_select($table, $alias = NULL, array $options = array())
elmsmedia7 db_select($table, $alias = NULL, array $options = array())
icor7 db_select($table, $alias = NULL, array $options = array())
meedjum_blog7 db_select($table, $alias = NULL, array $options = array())
mooc7 db_select($table, $alias = NULL, array $options = array())

Returns a new SelectQuery object for the active database.


$table: The base table for this query. May be a string or another SelectQuery object. If a query object is passed, it will be used as a subselect.

$alias: The alias for the base table of this query.

$options: An array of options to control how the query operates.

Return value

SelectQuery A new SelectQuery object for this connection.

Related topics

365 calls to db_select()
accessibility_admin_existing_tests in sites/all/modules/ulmus/accessibility/
List existing accessibility tests. @todo - add a filter form
accessibility_get_active_tests in sites/all/modules/ulmus/accessibility/accessibility.module
Helper function to return all active accessibiliy test entities.
accessibility_get_test_by_machine_name in sites/all/modules/ulmus/accessibility/accessibility.module
Returns the test ID for a given machine name.
actions_do in includes/
Performs a given list of actions by executing their callback functions.
admin_menu_session_count in sites/all/modules/ulmus/admin_menu/admin_menu.module
Counts how many users are active on the site.

... See full list

1 string reference to 'db_select'
httprl.examples.php in sites/all/modules/ulmus/httprl/examples/httprl.examples.php
HTTP Parallel Request Library code examples.


includes/database/, line 2516
Core systems for the database layer.


function db_select($table, $alias = NULL, array $options = array()) {
  if (empty($options['target'])) {
    $options['target'] = 'default';
  return Database::getConnection($options['target'])->select($table, $alias, $options);