newb Posted September 1, 2006 Share Posted September 1, 2006 [code]<?phpif ((in_array("$action", $pages)) && (!file_exists($cppath)) {echo 'page being worked on';}?>[/code]Error:[quote]Parse error: syntax error, unexpected '{' in /xx/index.php on line 21[/quote]why does it give me parse error. Quote Link to comment Share on other sites More sharing options...
.josh Posted September 1, 2006 Share Posted September 1, 2006 because you don't have enough closing parentheses ) if ((in_array("$action", $pages)) && (!file_exists($cppath))[b][color=red])[/color][/b] { Quote Link to comment 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.