Code:
<?php
 
//Define your database connections and select your database want to use. In this example I use two connections and two DBs. But you can use more than two.
 
//MySQL Server 1
$dbhost1 = "localhost";
$dbuser1 = "root";
$dbpassword1 = "";
$db1 = "mediteam";
$connection1 = mysql_connect($dbhost1,$dbuser1,$dbpassword1) or die (mysql_error());
...