header problems

From: Date: Mon, 13 May 2002 00:22:13 +0000
Subject: header problems
Groups: php.general 
Request: Send a blank email to php-general+get-97271@lists.php.net to get a copy of this message
Hi all, 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")); What im trying to do is connect to the database and if that fails send the browser to the error page. But the browser just sits there on the page that fails to connect.... Thanks for any advice/help in advance Cheers From baldey_uk

« previous php.general (#97271) next »