search comparison problem
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 34495
interpreted = N
texte = I'm working on a site for submitting classified ads online. We charge by theword for classified ads, and the per word rate changes depending on thenumber of words in the ad.I may have included way more info here than I needed to in order for someoneto answer my question.I have the following code in my test page (I chopped it into separate linesso it will hopefully be easier to read compared to what the email linebreaksdo to it):[text]__wordCount=[CountWords][__ad_body][/CountWords][/text] [search db=rates.db&geMIN_DAYSdatarq=[__wordCount]&leMAX_DAYSdatarq=[__wordCount]&max=8] [founditems][RATE][/founditems][/search]The rates.db file contains records that look like this:RATE_ID MIN_DAYS MAX_DAYS RATE01 1 1 3602 2 2 3503 3 3 2604 4 6 2204 7 9 19.505 10 13 14.506 14 20 13.907 21 29 11.808 30 30 11.5If I do a search where __wordCount equals 1, 2, 3, or 30 it finds 1 matchand outputs the correct number for [RATE]. However, if I do a search on anyother number (i.e., one where I need to evaluate: MIN_DAYS < __wordCount < MAX_DAYSit finds 0 in the search.How do I need to formulate my search correctly to have it come outcorrectly?Any help would be greatly appreciated.Thanks,Steve------------------------------------------------Steven JarvisWeb Developersjarvis@nwaonline.netMorning News of Northwest Arkansashttp://www.nwaonline.net-------------------------------------------------------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
|
- search comparison problem (Steven Jarvis 2000)
|
I'm working on a site for submitting classified ads online. We charge by theword for classified ads, and the per word rate changes depending on thenumber of words in the ad.I may have included way more info here than I needed to in order for someoneto answer my question.I have the following code in my test page (I chopped it into separate linesso it will hopefully be easier to read compared to what the email linebreaksdo to it):[text]__wordCount=[countwords][__ad_body][/CountWords][/text] [search db=rates.db&geMIN_DAYSdatarq=[__wordCount]&leMAX_DAYSdatarq=[__wordCount]&max=8] [founditems][RATE][/founditems][/search]The rates.db file contains records that look like this:RATE_ID MIN_DAYS MAX_DAYS RATE01 1 1 3602 2 2 3503 3 3 2604 4 6 2204 7 9 19.505 10 13 14.506 14 20 13.907 21 29 11.808 30 30 11.5If I do a search where __wordCount equals 1, 2, 3, or 30 it finds 1 matchand outputs the correct number for [RATE]. However, if I do a search on anyother number (i.e., one where I need to evaluate: MIN_DAYS < __wordCount < MAX_DAYSit finds 0 in the search.How do I need to formulate my search correctly to have it come outcorrectly?Any help would be greatly appreciated.Thanks,Steve------------------------------------------------Steven JarvisWeb Developersjarvis@nwaonline.netMorning News of Northwest Arkansashttp://www.nwaonline.net-------------------------------------------------------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Steven Jarvis
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
read and write you own cookies with webcat (1997)
[WriteFile] problems (1997)
Search results templates (1996)
[tcp connect] (1998)
Credit Card not accepted (1998)
webcat- multiple selection in input field (1997)
Instability Problem (1999)
Date search - yes or no (1997)
Running 2 two WebCatalog.acgi's (1996)
Opinion: [input] should be called [output] ... (1997)
Search for dates greater than [date] (1997)
Status of variable hierarchy changes? (2000)
apostrophe in search item (1997)
Show if time tags (1997)
.. more on sliding discounts... (1997)
decrypt and summ problems (1999)
Beta 18 (1997)
New NT betas available (1997)
website pro trouble (1998)
Mass Mail (2000)