Page 1 of 1

[SOLVED] or if?

Posted: Thu Aug 12, 2004 1:54 pm
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?

Posted: Thu Aug 12, 2004 1:59 pm
by ldomingues

Code: Select all

if (($sstaff=='1') or ($sstaff=='2')) {

Posted: Thu Aug 12, 2004 3:23 pm
by dwfait
Thanks, it worked.