Re: combine search

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 16313
interpreted = N
texte = >I am attempting to search a classifieds style database. I want to give the >user a way to enter 3 different area codes in which to narrow there search. >If no data is enter in the 3 fields or no matching data is entered, the >search result is always 0 records. From what I understand, webcatalog >should ignore the field and return all records. below is a sample of my >input search and my result page: > >Pretty basic: > >Search: > > > > >Result page: > >[search db=xxxx.db&woareaCodedatarq=[ac1],[ac2],[ac3]] > >This is very basic and there is more code than what is listed... But I have >narrowed the problem down to this. > >I think WC is interpreting the ac1..ac3 variables as spaces, therefore the >actual input is not blank and it actually looks for the spaces? I am not >sure what is going on here. HELP! I don't think it's looking for blank spaces ...Here, try the same search *without* the rq on the end of the woareaCodedatarq parameter and see what happens. If that doesn't fix it, add another parameter such as &neskudatarq=[blank] (assuming that you have a field in the database named sku of course), and that will force WebCat to return all the records when nothing is entered into those areaCode fields ... :)Sincerely, Ken Grome 808-737-6499 WebDNA Solutions mailto:ken@webdna.net http://www.webdna.net Associated Messages, from the most recent to the oldest:

    
  1. Re: combine search (Kenneth Grome 1998)
  2. Re: combine search (APC Home PC 1998)
  3. Re: combine search (Kenneth Grome 1998)
  4. combine search (APC Home PC 1998)
>I am attempting to search a classifieds style database. I want to give the >user a way to enter 3 different area codes in which to narrow there search. >If no data is enter in the 3 fields or no matching data is entered, the >search result is always 0 records. From what I understand, webcatalog >should ignore the field and return all records. below is a sample of my >input search and my result page: > >Pretty basic: > >Search: > > > > >Result page: > >[search db=xxxx.db&woareaCodedatarq=[ac1],[ac2],[ac3]] > >This is very basic and there is more code than what is listed... But I have >narrowed the problem down to this. > >I think WC is interpreting the ac1..ac3 variables as spaces, therefore the >actual input is not blank and it actually looks for the spaces? I am not >sure what is going on here. HELP! I don't think it's looking for blank spaces ...Here, try the same search *without* the rq on the end of the woareaCodedatarq parameter and see what happens. If that doesn't fix it, add another parameter such as &neskudatarq=[blank] (assuming that you have a field in the database named sku of course), and that will force WebCat to return all the records when nothing is entered into those areaCode fields ... :)Sincerely, Ken Grome 808-737-6499 WebDNA Solutions mailto:ken@webdna.net http://www.webdna.net Kenneth Grome

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:

Note added to [sendmail] in Docs (2004) Location of Browser Info.txt file (1997) Nested tags count question (1997) Major Security Hole (1998) Tea Room trouble (1997) Cookie Question (1999) Ooops-Serial Number for NT (1997) Fun with dates (1997) A little syntax help (1997) WebCat2b13MacPlugIn - [include] (1997) Great product and great job ! (1997) How can I Add several Items into the cart at once? (1997) [GROUPS] followup (1997) Bug in WC 4.02 on RH Linux with Append (2002) [searchString] (1997) line endings for Mac OS X files? (2003) WebCatalog can't find database (1997) WebDNA hosting? ... (2004) Need relative path explanation (1997) WebCat2b15MacPlugin - [protect] (1997)