user profiles: T_VARIABLE issue
Posted: Fri Sep 28, 2012 12:55 am
Hey,
I'm getting the T_VARIABLE parse error on line 20 when I try to load the pages. It's occuring on the init.inc.php page.
Here's my script:
I'm getting the T_VARIABLE parse error on line 20 when I try to load the pages. It's occuring on the init.inc.php page.
Here's my script:
// Connect to server and select database. mysql_connect("$host", "$username", "$password")or die("cannot connect" . mysql_error()); mysql_select_db("$db_name")or die("cannot select DB" . mysql_error()); $path = dirname(_FILE_); include("{$path}/inc/user.inc.php);" $_SESSION['uid'] = 1; ?>note: I exluded the db information.