Menu
Can anyone help me with modifying the following connection script? I want to modify it for this type of scenario:
if (!productiond? // Can’t connect to database (it’s either down or timesout)
connect testdB;
Here’s an extract of my script:
$db = @mysql_connect($host, $user, $pwd) or die (mysql_error($err . mysql_error()));
mysql_select_db($database);
is there a database abstraction layer that has that sort of functionality already built in?