jeff5656 Posted October 12, 2009 Share Posted October 12, 2009 I get Parse error: syntax error, unexpected '}' in E:\wamp\www\consults\displayactive.php on line 293: if ($so=='s'){ $count=($count-1)} I want to make the value of count one less of so = 's'. How come I don't have to close the if statement with a } bracket? Link to comment https://forums.phpfreaks.com/topic/177429-solved-parse-error-syntax-error/ Share on other sites More sharing options...
Maq Posted October 12, 2009 Share Posted October 12, 2009 Missing a semi-colon inside your if block. Link to comment https://forums.phpfreaks.com/topic/177429-solved-parse-error-syntax-error/#findComment-935520 Share on other sites More sharing options...
Skepsis Posted October 12, 2009 Share Posted October 12, 2009 if ($so=='s'){ $count=($count-1)}should beif ($so=='s'){ $count=($count-1);}i believe. Link to comment https://forums.phpfreaks.com/topic/177429-solved-parse-error-syntax-error/#findComment-935521 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.