On 07-Feb-2004 Ryan A wrote:

<snip>

> but how do i check if the database/tables have
> been setup?
> 

SHOW DATABASES LIKE 'mydb';
SHOW TABLES FROM mydb LIKE 'mytable';

Check if a table exists:

SELECT 1 FROM mydb.mytable LIMIT 1;

Regards,
-- 
Don Read                                       [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to 
   steal the neighbor's newspaper, that's the time to do it.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to