When I use this code:
<?php
//connect.php
$server = 'mysql6.000webhost.com';
$username = 'a7610910_forums';
$password = '********'; //Blanked out for yahoo answers
$database = 'a7610910_forums';
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');
}
?>
I get this Error:
Parse error: syntax error, unexpected '{' in /home/a7610910/public_html/source/connect.php on line 14
Any Ideas why?
<?php
//connect.php
$server = 'mysql6.000webhost.com';
$username = 'a7610910_forums';
$password = '********'; //Blanked out for yahoo answers
$database = 'a7610910_forums';
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');
}
?>
I get this Error:
Parse error: syntax error, unexpected '{' in /home/a7610910/public_html/source/connect.php on line 14
Any Ideas why?