Posts Tagged ‘drupal conditionals’

Implementation of conditions on Drupal AND OR queries

A simple query on Drupal looks like: $query = db_select(‘users’, ‘u’, $options); So, a full query is: //The query using MySQL $result = db_query(“SELECT uid, name, status, created, access FROM {users} u WHERE uid 0 LIMIT 50 OFFSET 0”); //Using Drupal Queries // Create an object of type SelectQuery $query = db_select(‘users’, ‘u’); // Add…

Read More