<?php $host = "localhost"; $dbusername = "andrea"; $dbpassword = "ilaria"; $dbname = "michel"; if (!mysql_connect($host, $dbusername, $dbpassword)){ echo("Cannot connect to ".$host."!"); exit; } @mysql_select_db($dbname) or die (mysql_error()); ?>