note 42748 deleted from function.mysql-tablename by tomsommer
| From: | tomsommer@php.net | Date: | Thu, 27 May 2004 22:10:18 +0000 |
| Subject: | note 42748 deleted from function.mysql-tablename by tomsommer | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-70217@lists.php.net to get a copy of this message | ||
Note Submitter: Kai
----
Another (IMHO the easiest) way to check if a table exists:
if (@mysql_query("SELECT * FROM " . $table) == false)
echo "table " . $table . " does not exist";
else
echo "table " . $table . " exists";