Thread: How?
View Single Post
Old 09-29-2007, 11:50 PM   #5 (permalink)
Salathe
Moderateur
RegEx Guru PHP Guru Top Contributor Advanced Programmer 
 
Salathe's Avatar
 
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
Salathe is on a distinguished road
Default

The mysql_fetch_row function was depreciated a long time ago. It's better to do a normal query and check the result:

PHP Code:
if(!mysql_num_rows(mysql_query("SHOW TABLES LIKE 'myTable';")))
{
    echo 
'Table myTable does not exist.';

Salathe is offline  
Reply With Quote