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:[EMAIL PROTECTED]]
> Sent: Thursday, August 15, 2002 12:42 AM
> To: [EMAIL PROTECTED]
> 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



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to