can someone tell me what is wrong with the following:
function connect($db_host,$db_database,$db_user,$db_pass){
global $db_connection;
try {
$db_connection = mysql_connect($DB_HOST,$db_user,$db_pass, true);
if(!$db_connection) {
throw new Exception('MYQSL Connection Database Error: ' . mysql_error());
} else {
$connection = true;
}
catch (Exception $e) {
echo $e->GetMessage();
}
}
I receive:
Parse error: syntax error, unexpected '{'
Refering to the { after try.
Thanks.