At 18:24 20.11.2002, Jami said: --------------------[snip]-------------------- >I have code that says: > >if($_GET['sc'] != '2' OR '8'){ > do this..... >} --------------------[snip]--------------------
besides all other good examples, you could also if (in_array($_GET['sc'], array('2','8'))) { do this..... } -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php