PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
michaelk46
Forum Commoner
Posts: 67 Joined: Mon Oct 12, 2009 9:50 pm
Post
by michaelk46 » Tue Jan 19, 2010 5:52 pm
I keep getting a parse error on this line
Code: Select all
elseif (isset($_POST['check'])) || (isset($_POST['fields']))
but I don't get the error if I remove one or the other arguments...
Any Ideas why?
Jonah Bron
DevNet Master
Posts: 2764 Joined: Thu Mar 15, 2007 6:28 pm
Location: Redding, California
Post
by Jonah Bron » Tue Jan 19, 2010 5:56 pm
PHP expects all condition statements to be enclosed in one set of braces.
michaelk46
Forum Commoner
Posts: 67 Joined: Mon Oct 12, 2009 9:50 pm
Post
by michaelk46 » Tue Jan 19, 2010 5:58 pm
Ahhhh... I had a feeling it was a smqll issue...