<?php
//Connect to the database server
$dbcnx = @mysql_connect($db_host, $db_username, $db_password);
if (!$dbcnx) {
echo("<P>Unable to connect to the database server at this time.<br></P>" );
echo("<P>The server is down or you did not complete the field in config/config.php correctly.<br></P>" );
exit();
}
//Select the database
if (! @mysql_select_db($db_name) ) {
echo( "<P>Unable to locate the database $db_name</P>" );
echo( "<P>The database server is down or<br>");
echo("database $db_name does not exist or <br>");
echo("you did not specify its name in config/config.php correctly</P>" );
exit();
}
?>