> Can anyone tell me if there is any reason why this would not > be working? > > mysql_connect($DBhost,$DBuser,$DBpass) or die(header("Location: > error.php"));
Why bother calling die() at all there? <? if ($mysql != mysql_connect($DBhost,$DBuser,$DBpass)) { Header("Location: error.php"); Exit(); } ?> J -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php