note 41830 added to function.mysql-tablename
| From: | Haseldow at rn2 dot php dot net | Date: | Fri, 23 Apr 2004 09:00:10 +0000 |
| Subject: | note 41830 added to function.mysql-tablename | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-68601@lists.php.net to get a copy of this message | ||
Another way to check if a table exists:
if(mysql_num_rows(mysql_query("SHOW TABLES LIKE '".$table."'"))==1)
echo "Table exists";
else echo "Table does not exist";
----
Manual Page -- http://www.php.net/manual/en/function.mysql-tablename.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+41830
Delete -- http://master.php.net/manage/user-notes.php?action=delete+41830&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+41830&report=yes
Search -- http://master.php.net/manage/user-notes.php