Secondo voi questo scripts è corretto?

<?php
include 'settings.php';
//database conection
$conection = mysql_connect($hostname, $username, $password);
if (!$conection) {
echo( "

Unable to connect to the " .
"database server at this time.</P>" );
exit();
}



if (! @mysql_select_db($databasename) ) {
echo( "

Unable to locate the '$databasename' " .
"database at this time.</P>" );
exit();
}

?>

Ecco il server mi risponde:

Unable to connect to the database server at this time.

Ale