tlavelle Posted August 21, 2007 Share Posted August 21, 2007 if(isset($_POST['wercbench2_next'] && isset$_POST['year']='2007') || $_POST['year']='2005') why is it giving me this? Parse error: syntax error, unexpected T_BOOLEAN_AND, expecting ',' or ')' in C:\xampp\htdocs\bench2\index4.php on line 105 Quote Link to comment https://forums.phpfreaks.com/topic/66011-solved-what-is-wrong-with-this-conditional/ Share on other sites More sharing options...
roopurt18 Posted August 21, 2007 Share Posted August 21, 2007 You left an open paren off of one of your isset expressions and a closed paren off of the other. When you get parse errors, look on and around the line the error is complaining about and look carefully. Quote Link to comment https://forums.phpfreaks.com/topic/66011-solved-what-is-wrong-with-this-conditional/#findComment-330081 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.