On Thu,  4 Oct 2001 16:04, Jason Dulberg wrote:
> Should I stick with
>
> if (($site_style!="10") && ($site_style!="9") && ($site_style!="8"))
>
> or
>
> if($site_style != ('10' or '9' or '8'))

As has been pointed out, that latter won't work. What is the range of 
possible values for $site_style? If it is 10 or less, then you could 
simply rephrase the test to

if($site_style < 8)

or alternatively, if the range is 0 to more than 10

if( $site_style < 8 || $site_style > 10 )



-- 
David Robley      Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES      Flinders University, SOUTH AUSTRALIA  

   "Ici nous voyons le tour Eiffel!" Tom parried.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to