Re: if database exist

From: Date: Wed, 03 Jan 2001 01:58:27 +0000
Subject: Re: if database exist
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-32448@lists.php.net to get a copy of this message
----- Original Message ----- From: "Richard Kurth" <rkurth@pacifier.com> To: <php-general@lists.php.net> Sent: Tuesday, January 02, 2001 5:57 PM Subject: [PHP] if database exist > > 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)); { ^^^^ remove ";" > echo("This Database Name already exist. > $databasename please select a new Database Name "); > } > > > > > > > > > > > NorthWestHost > Your web host provider > www.northwesthost.com > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#32448) next »