RE: [PHP] header problems

From: Date: Mon, 13 May 2002 00:25:12 +0000
Subject: RE: [PHP] header problems
Groups: php.general 
Request: Send a blank email to php-general+get-97272@lists.php.net to get a copy of this message
> 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

« previous php.general (#97272) next »