Question : Syntax to use user defined criteria in update routine

Greetings experts ...

I have two tables, each with two fields. In Table1 the fields are "fldCrit" and "fldDescI". in Table2 the fields are "fldTest" and fldDescO"

Sample records in Table1 are:
fldCrit, fldDescI
">500", "Greater than five hundred"
"<200", "Less then two hundred"
"=300", "Equals three hundred"

Sample records in Table2
fldTest, fldDescO
175,
840,
910,
15,
300,
(Field "fldDescO" is empty for all records in Table2)

I'd like to structure a routine that will loop through Table2, pick up the value in fldTest, and then compare it against each one of the possible criteria in fldCrit in Table 1. When the test against fldCrit returns true, the corresponding text description from fldDescI will be written in fldDescO

I've been going at it from the angle of a couple of Do While loops, and the sequential record processing is working just fine.  I've just been unable to find the proper syntax to allow the system to recognize whether the test of the value in fldTest against the criteria in fldCrit returns True.

This is a substantial oversimplification of the task at hand, but does capture the problem pretty accurately.

Any ideas you fine folks may be able to toss my way (including alternative methods other than Do While loops) would be greatly appreciated.

Many thanks.

John

Answer : Syntax to use user defined criteria in update routine

1) can you try going to admin, tools, clean cache?

2) are you positive mod_rewrite is working?
to test add this line to the top of .htaccess, your site should go to google:
RewriteRule (.*) http://www.google.com

3) how about SEF withOUT .htaccess (after trying the other two above first)
Random Solutions  
 
programming4us programming4us