Snippet Name: Test if mySQL table exists
Description: This script just tests to see if a given table exists in mySQL database.
Comment: (none)
Language: PHP, MYSQL
Highlight Mode: PHP
Last Modified: March 01st, 2009
|
<?PHP
IF( mysql_num_rows( mysql_query("SHOW TABLES LIKE '".$table."'"))){
// your code here......
}
?> |