if database exist
| From: | Richard Kurth | Date: | Wed, 03 Jan 2001 01:57:39 +0000 |
| Subject: | if database exist | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-32443@lists.php.net to get a copy of this message | ||
I am trying to check if a database already exist on the server this is
what I have so far but it does not work
$databasename="database123";
$db = MYSQL_CONNECT("localhost","root", "");
if (mysql_select_db ($databasename)); {
echo("This Database Name already exist.
$databasename please select a new Database Name ");
}
NorthWestHost
Your web host provider
www.northwesthost.com