Reply to Multiple (OR ||) case usage

Your name:

Reply:


Posted by Uleric on 02/01/07 01:09

Having trouble wrapping this up into a viable statement

I want to check on a users status before allowing a script to be run.
$myzone can only be 1 variable, but it can be here, there or where.

if ($myzone !== ("here") or ("there") or ("where")) { die: }

This does not work however, it will kill the script regardless if one
of the statments is actually true.

However, this WILL work if only one operator is checked:

if ($myzone !== "here") { die: }

If $myzone is "here" the script is allowed to run. If it's anything
else, it dies, as it is supposed to. However, I want to check if
$myzone is several options. That is my delima.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация