No matter what I do, I cannot get PHP to select more than one database. It only selects the one that I originally built after first installing MySQL.
I am running on a Windows platform using :
MySQL 3.23.47
PHP 4.3
Apache 1.3
Here's the code :
$db_name = "c:/mysql/data/testDB";
$conn = mysql_connect("127.0.0.1", USER_NAME, PASS_WORD) or die ("Couldn't connect.");
$db = mysql_select_db($db_name, $conn) or die ("Couldn't select database -- $db_name");
It fails every time at the last statement.
I can manipulate the DB from the MySQL monitor, so I know it's formatted properly. It's just that PHP will not select it!
I also had this same problem using PHP 4.1 (hence, I tried the upgrade to 4.3).
Any ideas here? I'm outta' em.
Tnx in advance.