parse error

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

Post Reply
michaelk46
Forum Commoner
Posts: 67
Joined: Mon Oct 12, 2009 9:50 pm

parse error

Post by michaelk46 »

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?
User avatar
Jonah Bron
DevNet Master
Posts: 2764
Joined: Thu Mar 15, 2007 6:28 pm
Location: Redding, California

Post by Jonah Bron »

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

Re: parse error

Post by michaelk46 »

Ahhhh... I had a feeling it was a smqll issue...
Post Reply