Re[2]: [PHP] if database exist

From: Date: Wed, 03 Jan 2001 02:16:31 +0000
Subject: Re[2]: [PHP] if database exist
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-32452@lists.php.net to get a copy of this message
Hello Hsieh, Thanks works perfect now >> >> 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)); { HWY> ^^^^ HWY> remove ";" >> echo("This Database Name already exist. >> $databasename please select a new Database Name "); >> }

« previous php.general (#32452) next »