I am having a problem with PHP (am very inexperienced with it) and I am getting the below error. Could anyone help me find the cause of the below error.
Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in /home/jsnow/projects/one/htdocs/edit-exec.php on line 30
My Code:
$dbconn = mysql_select_db(APP_DB);
if(!$dbconn)
{
die("ERROR SELECTING DB");
}
$query = "SELECT * FROM users WHERE users_id='$_SESSION['SESS_USER_ID']'";
$result = @mysql_query($query);
if($result) {
header("location: success-register.php");
exit();
}else {
die("Query failed");
}
I am not sure if its something obvious but I cant see it.
Any help would be very appreciative.