Codice PHP:
$link = @mysql_connect('server''user''password');
if (!
$link) {
    
header('Location: [url]http://[/url]'.$_SERVER['HTTP_HOST'].rtrim(dirname($_SERVER['PHP_SELF']), '/\\').'/errore_db.html');
    die();