RE: [PHP] stupid question
| From: | César Aracena | Date: | Thu, 15 Aug 2002 04:09:11 +0000 |
| Subject: | RE: [PHP] stupid question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-112664@lists.php.net to get a copy of this message | ||
You got a point there... unless you change the operator from != to ==
right? Missed that.
> -----Original Message-----
> From: Chris Shiflett [mailto:shiflett@php.net]
> Sent: Thursday, August 15, 2002 1:00 AM
> To: César Aracena
> Cc: 'Liam MacKenzie'; php-general@lists.php.net
> Subject: Re: [PHP] stupid question
>
> César Aracena wrote:
>
> >Just usa an OR concatenator like:
> >
> >If ($idx != '1' OR $idx != '4' OR $idx != '9'){
> >echo $results;
> >}
> >
>
> Actually, this statement will always evaluate to true. I think you
mean
> to use &&.
>
> Chris
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php