";
mysql_select_db("$dbName1") or die("Could not select database your_db_name1");
print "Database your_db_name1 selected successfully
";
// close connection
mysql_close($link);
// hostname or ip of server (for local testing, localhost should work)
$dbServer2='localhost';
// username and password to log onto db server
$dbUser2='your-db-user2';
$dbPass2='yourpassword2';
// name of database
$dbName2='your_db_name2';
$link = mysql_connect("$dbServer2", "$dbUser2", "$dbPass2") or die("Could not connect your_db_name2");
print "Connected successfully to your_db_name2
";
mysql_select_db("$dbName2") or die("Could not select database your_db_name2");
print "Database your_db_name2 selected successfully
";
// close connection
mysql_close($link);
// hostname or ip of server (for local testing, localhost should work)
$dbServer3='localhost';
// username and password to log onto db server
$dbUser3='your-db-user3';
$dbPass3='yourpassword3';
// name of database
$dbName3='your_db_name3';
$link = mysql_connect("$dbServer3", "$dbUser3", "$dbPass3") or die("Could not connect your_db_name3");
print "Connected successfully to gallery
";
mysql_select_db("$dbName3") or die("Could not select database your_db_name3");
print "Database your_db_name3 selected successfully
";
// close connection
mysql_close($link);
?>