Posted by gosha bine on 04/18/07 13:23
On 18.04.2007 14:58 GarryJones wrote:
> I need to test for one of several values. Can I include these in a
> single "if" statement
>
> I tried using OR but it does not work. In the actual file I need to
> check if a supplied user input meets one of about 170 possible code
> combinations.
Hardcoding more than 100 conditions doesn't seem to be a good idea in
any case. Put them in db and use the power of sql to find if the value
matches.
--
gosha bine
extended php parser ~ http://code.google.com/p/pihipi
blok ~ http://www.tagarga.com/blok
Navigation:
[Reply to this message]
|