Re: Re: What's wrong with this IF statement?
| From: | Leo G. Divinagracia III | Date: | Fri, 30 Apr 2004 22:59:57 +0000 |
| Subject: | Re: Re: What's wrong with this IF statement? | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-34227@lists.php.net to get a copy of this message | ||
anyone else see the problem with the IN clause instead: ie. if !($cat in (53, 54, 55, 117, 118, 74))... makes building SQL statements much easier. especially with mutiple SELECTS in a pull down form object. -- Leo G. Divinagracia III ldivinag@csuhayward.edu zzzzzif ($cat_id != "53" || $cat_id != "54" || $cat_id != "55" || $cat_id != "117" || $cat_id != "118" || $cat_id != "74")