John W. Holmes wrote:
> You want && instead of ||
>
> if ($cat_id != "53" && $cat_id != "54" && $cat_id != "55" && $cat_id
> != "117" && $cat_id != "118" && $cat_id != "74")

For stuff like this I've always found the following slightly easier on the
eyes:

if (!in_array($cat_id, array('53', '54', '55', '117', '118', '74')))

YMMV...

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to