I'm having the same problem.
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.
$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?