You are here: Re: If Or « PHP Programming Language « IT news, forums, messages
Re: If Or

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]


Удаленная работа для программистов  •  Как заработать на 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

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