Once a database is created how can it be checked if the database contains tables or table structure using PHP?
Scenario:
When the user accesses the system first time it creates a default database with no tables, then in the next step the user is supposed to import the customized database structure by uploading .sql file. I need to check if they have imported the database or has skipped that step by checking if the default database that was automatically created earlier has any table structure.
When I executed mysql_list_tables(defaultDBName) it just returns "Your SQL query has been executed successfully", but no result set in phpMyAdmin.