Test If Mysql Table Exists

Description: This script just tests to see if a given table exists in mySQL database.

<?PHP
 
IF( MYSQL_NUM_ROWS( MYSQL_QUERY("SHOW TABLES LIKE '".$table."'"))){
 
// your code here......
 
}
 
?>

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.