adamriley Posted June 17, 2010 Share Posted June 17, 2010 adamriley.php (part file) if (isset($_SESSION["delete_session"])) && ($_SESSION["delete_session"] == 'yes'){ session_destroy(); } could some one say why i get an error of "Parse error: syntax error, unexpected T_BOOLEAN_AND " Link to comment https://forums.phpfreaks.com/topic/205082-using-t_boolean_and/ Share on other sites More sharing options...
gergy008 Posted June 17, 2010 Share Posted June 17, 2010 adamriley.php (part file) if (isset($_SESSION["delete_session"])) && ($_SESSION["delete_session"] == 'yes'){ session_destroy(); } could some one say why i get an error of "Parse error: syntax error, unexpected T_BOOLEAN_AND " if (isset($_SESSION["delete_session"]) && $_SESSION["delete_session"] == 'yes'){ session_destroy(); } Try that. Link to comment https://forums.phpfreaks.com/topic/205082-using-t_boolean_and/#findComment-1073534 Share on other sites More sharing options...
mrMarcus Posted June 17, 2010 Share Posted June 17, 2010 You were missing closing parenthesis. Link to comment https://forums.phpfreaks.com/topic/205082-using-t_boolean_and/#findComment-1073538 Share on other sites More sharing options...
adamriley Posted June 17, 2010 Author Share Posted June 17, 2010 Yes it now works thanks for your reply Link to comment https://forums.phpfreaks.com/topic/205082-using-t_boolean_and/#findComment-1073539 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.