Hi
I am using the $wpdb to carry out SQL queries. I am trying to write a query that will allow me to see all the tables in the database but I keep getting an unknown database error. See code below:
$sql = "SHOW TABLES FROM " . '$wpdb';
if (!$result = mysql_query($sql))
{
die ('Error getting table list (' . $sql . ' :: ' . mysql_error() . ')');
}