[WebDNA] Search on a database

This WebDNA talk-list message is from

2012


It keeps the original formatting.
numero = 108749
interpreted = N
texte = ---1540918134-827972870-1330657252=:60432 Content-Type: text/plain; charset=us-ascii Hi, I have created a survey form that sends its data to a db file. I would like to query the db to retrieve each person's responses to all the questions. A unique ID number from 12 to 16 digits is assigned to each visitor. I'm having a hard time figuring out how to retrieve the data using the search context. My sense is that something like a sku or ID number that is not random, but consecutive is the way to go. Is there a way to assign a more searchable ID number? The method I'm using now to generate each ID number is: Or perhaps, would it be more efficient to search by date, and bring up all the responses that were received on a given date? If this would be better, please show the code for a search on date? I don't mind leaving the method of assigning unique ID numbers as it is. ...rest of form.tpl [showif [url][visitorUniqueID][/url]=[url][raw][visitorUniqueID][/raw][/url]] [text]visitorUniqueID=[cart][/text] [/showif] Here are some of the fields invisitorSurvey.db: visitorIDtheDatetheTimelearnMoredesignnamecityemail Help would be greatly appreciated. Lori ---1540918134-827972870-1330657252=:60432 Content-Type: text/html; charset=us-ascii
Hi,

I have created a survey form that sends its data to a db file. I would like to query the db to retrieve each person's responses to all the questions. A unique ID number  from 12 to 16 digits is assigned to each visitor. I'm having a hard time figuring out how to retrieve the data using the search context. My sense is that something like a sku or ID number that is not random, but consecutive is the way to go.

Is there a way to assign a more searchable ID number? The method I'm using now to generate each ID number is: 

Or perhaps, would it be more efficient to search by date, and bring up all the responses that were received on a given date? If this would be better, please show the code for a search on date? I don't mind leaving the method of assigning unique ID numbers as it is. 


...rest of form.tpl

[showif [url][visitorUniqueID][/url]=[url][raw][visitorUniqueID][/raw][/url]]
[text]visitorUniqueID=[cart][/text]
[/showif]
<input name="visitorUniqueID" type="hidden" value="[visitorUniqueID]" />
</form>


Here are some of the fields in visitorSurvey.db:

visitorID theDatetheTimelearnMoredesignnamecityemail

Help would be greatly appreciated.
Lori

 
 

 

---1540918134-827972870-1330657252=:60432-- Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Search on a database (Govinda 2012)
  2. Re: [WebDNA] Search on a database (Lori Palmquist 2012)
  3. Re: [WebDNA] Search on a database (Govinda 2012)
  4. Re: [WebDNA] Search on a database (Lori Palmquist 2012)
  5. Re: [WebDNA] Search on a database (Govinda 2012)
  6. Re: [WebDNA] Search on a database (Lori Palmquist 2012)
  7. Re: [WebDNA] Search on a database (Govinda 2012)
  8. Re: [WebDNA] Search on a database (Lori Palmquist 2012)
  9. Re: [WebDNA] Search on a database (Govinda 2012)
  10. Re: [WebDNA] Search on a database (Lori Palmquist 2012)
  11. Re: [WebDNA] Search on a database (Govinda 2012)
  12. Re: [WebDNA] Search on a database (Govinda 2012)
  13. Re: [WebDNA] Search on a database (Lori Palmquist 2012)
  14. Re: [WebDNA] Search on a database (Govinda 2012)
  15. Re: [WebDNA] Search on a database (aaronmichaelmusic@gmail.com 2012)
  16. [WebDNA] Search on a database (Lori Palmquist 2012)
---1540918134-827972870-1330657252=:60432 Content-Type: text/plain; charset=us-ascii Hi, I have created a survey form that sends its data to a db file. I would like to query the db to retrieve each person's responses to all the questions. A unique ID number from 12 to 16 digits is assigned to each visitor. I'm having a hard time figuring out how to retrieve the data using the search context. My sense is that something like a sku or ID number that is not random, but consecutive is the way to go. Is there a way to assign a more searchable ID number? The method I'm using now to generate each ID number is: Or perhaps, would it be more efficient to search by date, and bring up all the responses that were received on a given date? If this would be better, please show the code for a search on date? I don't mind leaving the method of assigning unique ID numbers as it is. ...rest of form.tpl [showif [url][visitorUniqueID][/url]=[url][raw][visitorUniqueID][/raw][/url]] [text]visitorUniqueID=[cart][/text] [/showif] Here are some of the fields invisitorSurvey.db: visitorIDtheDatetheTimelearnMoredesignnamecityemail Help would be greatly appreciated. Lori ---1540918134-827972870-1330657252=:60432 Content-Type: text/html; charset=us-ascii
Hi,

I have created a survey form that sends its data to a db file. I would like to query the db to retrieve each person's responses to all the questions. A unique ID number  from 12 to 16 digits is assigned to each visitor. I'm having a hard time figuring out how to retrieve the data using the search context. My sense is that something like a sku or ID number that is not random, but consecutive is the way to go.

Is there a way to assign a more searchable ID number? The method I'm using now to generate each ID number is: 

Or perhaps, would it be more efficient to search by date, and bring up all the responses that were received on a given date? If this would be better, please show the code for a search on date? I don't mind leaving the method of assigning unique ID numbers as it is. 


...rest of form.tpl

[showif [url][visitorUniqueID][/url]=[url][raw][visitorUniqueID][/raw][/url]]
[text]visitorUniqueID=[cart][/text]
[/showif]
<input name="visitorUniqueID" type="hidden" value="[visitorUniqueID]" />
</form>


Here are some of the fields in visitorSurvey.db:

visitorID theDatetheTimelearnMoredesignnamecityemail

Help would be greatly appreciated.
Lori

 
 

 

---1540918134-827972870-1330657252=:60432-- Lori Palmquist

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:

restarting service remotely on NT (1997) Setting up WebCatalog with Retail Pro data (1996) Setting up shop (1997) Re:Replace command help (1998) Errata: WCS Newbie question (1997) Associative lookup style? (1997) [protect] (2000) Show if time tags (1997) How nuch ram??? (1997) Quitting WebMerchant ? (1997) [ot] table gap help?!? (2001) Hello world ... (2002) Possible Bug in 2.0b15.acgi (1997) Can webcat 3.0/4.0 handle 1,000,000 hits a day? (2000) WebCatalog-NT?'s (1996) [Mac 3.0.8] Formulas.db Question (2003) [isfolder] and [filename] (1997) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) [Sum] function? (1997) Summary layout (1997)