Execute an arbitrary SQL command in Drupal 5
Snippet
Instead of being asleep at 09:51 on 29 March 2010, kitt created this:
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