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