<?php

$connection = mysql_connect( 'localhost', 'nomeutente', 'password') or die('Impossibile connettersi al server' );
        mysql_select_db('database_name', $connection) or die('Impossibile connettersi al database');
?>