Re: php in css not working with IF's
| From: | David Robley | Date: | Thu, 04 Oct 2001 06:47:52 +0000 |
| Subject: | Re: php in css not working with IF's | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-69900@lists.php.net to get a copy of this message | ||
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.