Hi everybody.
In my local server everything worked fine, but now that I'm trying to run my script in the web hosting server I get this error message:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /usr111/home/g/a/gamtrak/public_html/nlproject/NewsletterConfig.php on line 3
This is my code:
<!-- NewsletterConfig.php -->
<?php
$hostaddress = "database.addr.com";
$username = "duck";
$password = "cool";
$db_name = "nwletter";
$dbcnx = @mysql_connect($hostaddress, $username, $password);
if (!$dbcnx) {
die( '<p>Error connecting to the ' .
'database server.</p>' );
}
if (! @mysql_select_db($db_name) ) {
die( '<p>Error connecting to the MembersEmail ' .
'database.</p>' );
}
?>
Can you help me I'm stuck so far? 😕