include 'config.php'; $con = mysql_connect($host,$dbuser,$dbpass); if (!$con) { $host = $_SERVER['HTTP_HOST']; $extra = 'error.html'; header("Location: http://$host/$extra"); exit; } mysql_select_db($db) or die(mysql_error()); ?>