I am getting the following error.
[14-Jun-2017 04:15:44 Etc/GMT] PHP Parse error: syntax error, unexpected T_VARIABLE in /home/managsfa/public_html/function_dbc.php on line 1
The code is as follows
<?php
$DB_HOST = "localhost";
$DB_USER = "username";
$DB_PASS = "password";
$DB_NAME = "managsfa__main";
$link = mysql_connect($DB_HOST, $DB_USER, $DB_PASS) or die("Couldn't make connection.");
$db = mysql_select_db($DB_NAME, $link) or die("Couldn't select database");
?>
When i run the code in my local WAMP it runs fine but on the hosting service i get the error.
I have checked the PHP version etc and all appears to be OK. I know i am using deprecated function but that is not causing the error. I will be changing that later.