What\'s wrong with my code? I keep getting this error: Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in functions.php on line 4 error readin
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in functions.php on line 4 error readin
The problem is here: mysql_query("SHOW TABLES LIKE '$gn'",$db)
mysql_query("SHOW TABLES LIKE '$gn'",$db)
There is no $db in scope.
$db
If you are only using one database connection and you have already connected, you can just remove this argument.