Execute an arbitrary SQL command in Drupal 5
Snippet
Written with a loving hand by kitt some time around 09:51 on 29 March 2010
If execute PHP is enabled (in a block), the SQL to execute an arbitrary SQL command.
$res = db_query('show tables'); while ($row = db_fetch_array($res)) { print_r($row); }
Add new comment