Can't Select database
Posted: Mon Nov 04, 2002 9:06 pm
Can't seem to select teh database.
Here's the code I'm using. Have done this before without a problem until the phpMyAdmin was upgraded to 2.3.2 with MySQL 3.23.53a . Now when I try creating a new database I can't connect. The existing ones are working fine though. Just the new ones aren't working.
I keep getting:
"First Line of database connection works
Unable to select the database.
Any ideas?
Here's the code I'm using. Have done this before without a problem until the phpMyAdmin was upgraded to 2.3.2 with MySQL 3.23.53a . Now when I try creating a new database I can't connect. The existing ones are working fine though. Just the new ones aren't working.
Code: Select all
$db = mysql_connect("localhost","user","password")
or die("Could not open connection to database");
echo "First Line of database connection works <BR>";
mysql_select_db("database",$db)
or die("Unable to select the database.");I keep getting:
"First Line of database connection works
Unable to select the database.
Any ideas?