Codice PHP:
$host "localhost";
$dbname "nomedatabase";
$dbuser "pippo";
$dbpwd "pluto";
if (!
mysql_connect($dbhost,$dbuser,$dbpwd)) mysql_error();
if (!
mysql_select_db($dbname)) mysql_error();