I am getting the error code below
Parse error: syntax error, unexpected $end in C:\Users\xxx\EasyPHP-5.3.2i\www\conn.php on line 43
The script works fine on my hosting account. I downloaded easyphp so I could edit my scripts without having to be connected to the internet. I have tried to figure this out but have not been successful.
Line 43 is the last line. I have short tags turned on as this is how the whole script was written here is the file it is my conn.php file for connecting to mysql
<?
//enter your MySQL database host name, often it is not necessary to edit this line
$db_host = "localhost";
//enter your MySQL database username
$db_username = "root";
//enter your MySQL database password
$db_password = "(no password)";
//enter your MySQL database name
$db_name = "test";
/*
Enter the full address to the directory where you have installed the script
for example, if you installed the script at the "cars" directory, the $BannerPath should looks like:
$BannerPath = "www.bigfranktowing.com"
*/
$BannerPath = "C:\Users\xxx\easyPHP-5.3.2i\mysql\data\";
////////////////////////////////////////////////////////////
////// do not edit below this line ///////
///////////////////////////////////////////////////////////
//connect to the database server
$connection = mysql_connect($db_host, $db_username, $db_password) or die(mysql_error());
//select database
$db = mysql_select_db($db_name, $connection);
session_start();
$t = time();
?>
If there is anyone who could help I would greatly appreciate it.
Thanks
Edited 1 time(s). Last edit at 05/13/2010 12:39AM by vvvddd2003.