<?php
$dbServer1='localhost';
// username and password to log onto db server
$dbUser1='your-db-user1';
$dbPass1='yourpassword1';
// name of database
$dbName1='your_db_name1';
$link = mysql_connect("$dbServer1", "$dbUser1", "$dbPass1") or die("Could not connect post");
print "Connected successfully to your_db_name1<br>";
mysql_select_db("$dbName1") or die("Could not select database your_db_name1");
print "Database your_db_name1 selected successfully<br><br><br>";
// 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<br>";
mysql_select_db("$dbName2") or die("Could not select database your_db_name2");
print "Database your_db_name2 selected successfully<br><br><br>";
// 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<br>";
mysql_select_db("$dbName3") or die("Could not select database your_db_name3");
print "Database your_db_name3 selected successfully<br><br><br>";
// close connection
mysql_close($link);
?>