I have 100 tables. Some of the tables contain table name as 'plan_2' and some of them 'temp'.
So how can I select tables only 'plan_2' not containing 'temp'.
My query not working.
$result=mysql_query("SHOW TABLES LIKE 'plan_2%' AND TABLES NOT LIKE '%temp%'");
mysql_*functions are deprecated in PHP 5.5. It is not recommended for writing new code as it will prevent you from upgrading in the future. Instead, use either MySQLi or PDO and be a better PHP Developer.