Checks for the existence of a table in the current database.
bool db_table_exists(string tablename)
Returns TRUE if the table exists, FALSE otherwise.
// Check for table if(db_table_exists("mytable")) { echo "mytable exists"; }