Im not sure why am I getting this syntax error.
Parse error: syntax error, unexpected '{' in /var/www/test/db.php on line 13
The code seems fine to me... Can anyone give me a few tips? :)
$server = 'host';
$username = 'username';
$password = 'password';
$database = 'database';
if(!mysql_connect($server, $username, $password))
{
exit('Error: could not establish database connection');
}
if(!mysql_select_db($database)
{
exit('Error: could not select the database');
}