jeff5656 Posted July 8, 2012 Share Posted July 8, 2012 if (isset($_POST['ptsearch'])|| isset($_GET['searchname')){ I get this error: Parse error: syntax error, unexpected ')', expecting ']' in /home/etc... Maybe i am having a stroke, but I can't see where the parentheses are not all closed. Quote Link to comment https://forums.phpfreaks.com/topic/265385-error-with/ Share on other sites More sharing options...
Pikachu2000 Posted July 8, 2012 Share Posted July 8, 2012 They aren't all closed. There are three ( and two ). expecting ']' tells you something else isn't closed either . . . Quote Link to comment https://forums.phpfreaks.com/topic/265385-error-with/#findComment-1360080 Share on other sites More sharing options...
KevinM1 Posted July 8, 2012 Share Posted July 8, 2012 Specifically, look at the end of your $_GET. Quote Link to comment https://forums.phpfreaks.com/topic/265385-error-with/#findComment-1360082 Share on other sites More sharing options...
jeff5656 Posted July 8, 2012 Author Share Posted July 8, 2012 oops. got it thanks. It threw me off because the error message was referring to a ) when the error was triggered by a missing ]. Quote Link to comment https://forums.phpfreaks.com/topic/265385-error-with/#findComment-1360085 Share on other sites More sharing options...
Pikachu2000 Posted July 8, 2012 Share Posted July 8, 2012 Oh, I see what you did there. You added a missing ) to the OP when I wasn't looking . . . Quote Link to comment https://forums.phpfreaks.com/topic/265385-error-with/#findComment-1360089 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.