RE: [PHP] stupid question
| From: | César Aracena | Date: | Thu, 15 Aug 2002 03:53:46 +0000 |
| Subject: | RE: [PHP] stupid question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-112655@lists.php.net to get a copy of this message | ||
Just usa an OR concatenator like:
If ($idx != '1' OR $idx != '4' OR $idx != '9'){
echo $results;
}
Remember that if you are echoing just $result, it should not be enclosed
into double quotes... just a tip.
> -----Original Message-----
> From: Liam MacKenzie [mailto:phplist@operationenigma.com]
> Sent: Thursday, August 15, 2002 12:42 AM
> To: php-general@lists.php.net
> Subject: [PHP] stupid question
>
> Ok, I'm having a blonde day...
>
> If $idx == 1, 4 or 9 I don't want it to echo $results.
> I have this, what's the syntax to put multiple values in there?
>
>
> if ($idx != "1") {
> echo"$results";
> }
>
>
> Thanks,
> Liam
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php