Codice PHP:
global $link,$dbw,$db_username,$db_password,$db_host;
$db_username='****';
$db_password='****';
$db_host='***';
$link=mysql_connect("$db_host","$db_username","$db_password") or die("errore connessione database".mysql_error());
$dbw=mysql_select_db("**") or die ("errore apertura database" .mysql_error());