Development

db_query() and db_placeholders() example #1

Have you ever wondered how to properly build a query like this in Drupal:

This requires the use of db_placeholders() to create the placeholder ‘ ‘, ‘ ‘, etc.

where $node_types is an array of node types.

Leave a Reply

Your email address will not be published.