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:
[syntax=php]
// 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;
?>[/syntax]
note: I exluded the db information.
user profiles: T_VARIABLE issue
Re: user profiles: T_VARIABLE issue
[syntax=php]include("{$path}/inc/user.inc.php);"[/syntax]
This line is wrong, you're "closing" the statement with the semicolon and the ending parenthesis BEFORE the ending quote.
So change it to this,
[syntax=php]include("{$path}/inc/user.inc.php");[/syntax]
This line is wrong, you're "closing" the statement with the semicolon and the ending parenthesis BEFORE the ending quote.
So change it to this,
[syntax=php]include("{$path}/inc/user.inc.php");[/syntax]