[SOLVED] or if?

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
dwfait
Forum Contributor
Posts: 113
Joined: Sun Aug 01, 2004 10:36 pm

[SOLVED] or if?

Post by dwfait »

I get the error:
Parse error: parse error, unexpected T_LOGICAL_OR in index.php on line 366
when i try to do this:

Code: Select all

if ($sstaff=='1') or if ($sstaff=='2') {
How do i do an or statement?
ldomingues
Forum Commoner
Posts: 41
Joined: Fri Aug 06, 2004 1:15 pm
Location: Portugal

Post by ldomingues »

Code: Select all

if (($sstaff=='1') or ($sstaff=='2')) {
dwfait
Forum Contributor
Posts: 113
Joined: Sun Aug 01, 2004 10:36 pm

Post by dwfait »

Thanks, it worked.
Post Reply