dewey_witt Posted September 25, 2007 Share Posted September 25, 2007 If anyone see's what the heck is going on here I'd gladly appriciate a reply. And Thanks in advance The Error: Parse error: syntax error, unexpected T_IS_EQUAL in C:\webs\test\header.php on line 6 <?php session_start(); if($_SESSION['SESS_CHANGEID']) == TRUE) { session_unset(); session_regenerate_id(); // This Line does not show as valid code either. } require("config.php"); $db = mysql_connect($dbhost, $dbuser, $dbpassword); mysql_select_db($dbdatabase, $db); ?> Im not seeing it :-\ Link to comment https://forums.phpfreaks.com/topic/70618-syntax-error-unexpected-t_is_equal-help-help/ Share on other sites More sharing options...
jitesh Posted September 25, 2007 Share Posted September 25, 2007 if(($_SESSION['SESS_CHANGEID']) == TRUE) { Or if($_SESSION['SESS_CHANGEID'] == TRUE) { Or if($_SESSION['SESS_CHANGEID']) { Link to comment https://forums.phpfreaks.com/topic/70618-syntax-error-unexpected-t_is_equal-help-help/#findComment-354848 Share on other sites More sharing options...
hemlata Posted September 25, 2007 Share Posted September 25, 2007 There is unexpected closing in your if condition. modify your code with the following block if($_SESSION['SESS_CHANGEID'] == TRUE) { session_unset(); session_regenerate_id(); // This Line does not show as valid code either. } require("config.php"); $db = mysql_connect($dbhost, $dbuser, $dbpassword); mysql_select_db($dbdatabase, $db); Hope this will help. Regards, Link to comment https://forums.phpfreaks.com/topic/70618-syntax-error-unexpected-t_is_equal-help-help/#findComment-354852 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.