Hi,
I want to redirect if the connection to my Db fails.
I have this code but it doesn't work (or else I wouldn't be here 🙂 ), it just shows the standard SQL errors with no redirection.
Can anyone put me right please ?
<?php $db = mysql_connect("localhost", "user", "password");
mysql_select_db("database",$db)
or
header('Location: http://www.site.com/error.php');
?>
Thanks