You are here: Re: Coding a User-Editable Pseudo-Language in PHP « All PHP « IT news, forums, messages
Re: Coding a User-Editable Pseudo-Language in PHP

Posted by robert on 04/28/06 22:25

| if the eval failed,
| the record was considered valid...truth meant the condition matched a
| non-violatable rule. in those cases, the description of the rule was
| displayed.

"eval" here not to be confused w/ eval(). in php, it was simply $var ==
$val...or in_array($var, $vals) or prefixed with ! where the negative effect
is warranted...e.x. !($var == $val) or, !(in_array($var, $vals). simply
using >= && <= suffices to cover a value falling within a certain range.
it's very quick, efficient, and simple.

this allowed us to handle not only record A, then B, then C...but to further
validate by certain aspects of A, B, or C. ex. record A is paint job which
requires B which stands for paint...C (powder coat) is only required when A
is a certain quality/price of a paint job and also only required when B is
red paint...does that make sense?

 

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

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