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 :-\ Quote 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']) { Quote 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, Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.