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 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. 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
Archived
This topic is now archived and is closed to further replies.