RE: [PHP-DB] Really embarassing newbie question...
| From: | Tyrone Mills | Date: | Fri, 27 Apr 2001 04:43:07 +0000 |
| Subject: | RE: [PHP-DB] Really embarassing newbie question... | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-8928@lists.php.net to get a copy of this message | ||
You didn't mention what DBMS you are running... Assuming it is MySQL, check
page 686 in the PHP Manual, you're looking for mysql_list_tables()
Enjoy...
-----Original Message-----
From: ~BD~ [mailto:bd@bustdustr.net]
Sent: Thursday, April 26, 2001 9:33 PM
To: php-db@lists.php.net
Subject: [PHP-DB] Really embarassing newbie question...
Sorry to do this to ya...
I"ve been involved with PHP for a total of two days now, and I'm kinda
stumped. I've been looking in docs for about 4 hours now for this, and I'm
sure I'm slipping right by the obvious answer somewhere, but....
What's the best (recommended) way to determine if a table exists in a
database? Is it to try a query on it, and check the returned error? that's
the way I'm set up now, but I can't help but think there's got to be a
better way...
TIA,
~BD~
http://www.bustdustr.net
Home of Radio Free Bd
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
For additional commands, e-mail: php-db-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net