Re: Range Comparisons

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 33119
interpreted = N
texte = Thank you for replying, Aaron.I think you might have missed the original question... I need to do this search a little backwards. The low and high end of the range are actually fields in the database, not user input. They will be submitting one number, which I'm trying to get to match or fall between the low and high in the db.Exampe db...ZipStart ZipEnd 47600 47799 47800 47999 48000 49999These database entries will change weekly.Then the search would use one zip code number, [zipcode], that the user posted from a form on the previous page. The search is supposed to find a match or or fall between ZipStart and ZipEnd. That's where I came up with the following which seems like it should work, but doesn't...[search db=firms.db&geZipStartdatarq=[zipcode]&leZipEnddatarq=[zipcode]&max=1&ZipStarttype=num&ZipEndtype=num]The way the rn search comparison seems to work, is the opposite of this. Using a range of numbers in the search to match one field in the database.Thanks for your help.-RWAaron Lynch wrote:> Your exact premise is in the docs: > rnzipcodedata=92069 93090&zipcodetype=num > > or you could use clzipcodedata=92069&clzipcodedata=10 to find all records > within '10' > > or, you can use mr for min and xr for the max values. > > (don't feel bad, I missed this recently as well, the M is too hard ri F'ing > R or I'd just be condescending and say... well, you know RT*M :) > > ------------------------------------------------------------- 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:

    
  1. Re: Range Comparisons (Kenneth Grome 2000)
  2. Re: Range Comparisons (Robert Wade 2000)
  3. Re: Range Comparisons (Bob Sneidar 2000)
  4. Re: Range Comparisons (John Peacock 2000)
  5. Re: Range Comparisons (Robert Wade 2000)
  6. Re: Range Comparisons (Aaron Lynch 2000)
  7. Re: Range Comparisons (Robert Wade 2000)
  8. Re: Range Comparisons (Paul Fowler 2000)
  9. Range Comparisons (Robert Wade 2000)
Thank you for replying, Aaron.I think you might have missed the original question... I need to do this search a little backwards. The low and high end of the range are actually fields in the database, not user input. They will be submitting one number, which I'm trying to get to match or fall between the low and high in the db.Exampe db...ZipStart ZipEnd 47600 47799 47800 47999 48000 49999These database entries will change weekly.Then the search would use one zip code number, [zipcode], that the user posted from a form on the previous page. The search is supposed to find a match or or fall between ZipStart and ZipEnd. That's where I came up with the following which seems like it should work, but doesn't...[search db=firms.db&geZipStartdatarq=[zipcode]&leZipEnddatarq=[zipcode]&max=1&ZipStarttype=num&ZipEndtype=num]The way the rn search comparison seems to work, is the opposite of this. Using a range of numbers in the search to match one field in the database.Thanks for your help.-RWAaron Lynch wrote:> Your exact premise is in the docs: > rnzipcodedata=92069 93090&zipcodetype=num > > or you could use clzipcodedata=92069&clzipcodedata=10 to find all records > within '10' > > or, you can use mr for min and xr for the max values. > > (don't feel bad, I missed this recently as well, the M is too hard ri F'ing > R or I'd just be condescending and say... well, you know RT*M :) > > ------------------------------------------------------------- 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/ Robert Wade

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:

RE: Database Structure? (1998) Date search - yes or no (1997) Setting up shop (1997) Need relative path explanation (1997) Multiple prices (1997) How can I Add several Items into the cart at once? (1997) Problems with cybercash (2000) Question on TABLES (2003) Today's suggestions (1998) Emailer problem (1998) [WebDNA] Format Days_To_Date (2008) [protect] on NT? (1997) stripping extra spaces from form fields (2000) Input and Convertchars contexts (2003) [cart] (1998) WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997) shownext (1997) Help! (2000) [showif] with ! (2000) Can't use old cart file (was One more try) (1997)