Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Lets tell people on the node/add form that that;
- In order to use a non default database connection, they can specify 'use [CONNECTION_NAME]' in their SQL
- When viewing a report, additional arguments are passed to the query. For example, node/12/csv/usa/shoes will pass 'usa' and 'shoes' as values to db_query(). Presumably, the query uses %s in order to show where these values should be used.
Comments
Comment #1
ltrainDoes it already work this way? I need a way to pass variables to the query.