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



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to