Posted by NC on 11/19/06 01:56
laredotornado@zipmail.com wrote:
>
> Using MySQL 5.0 and PHP 4.4.4, what is the easiest way (using PHP
> code) to check if a database by a particular name exists?
Get a list of existing databases using mysql_list_dbs() and see if the
name you are interested in is on the list:
http://www.php.net/manual/en/function.mysql-list-dbs.php
Cheers,
NC
[Back to original message]
|