There are other ways of doing this, but I think you might be looking for the logical AND operator (&&).
if ($idx != "1" && $idx != "4" && $idx != "9") Happy hacking. Chris Liam MacKenzie wrote: >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"; >} > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php