Re: Picking a random entry from a .db

This WebDNA talk-list message is from

2001


It keeps the original formatting.
numero = 40225
interpreted = N
texte = At 9:31 AM 11/21/01, Matthew Bohne wrote: >My questions is... can I, or How can I search and pull one random >entry from the database? > >[search db=angeltree.db& .......Add to your search criteria something that'll pull all results you'd potentially want from the db (nezipdata=0, for example), sort it randomly (&zipsort=1&zipsdir=ra), and return only one result (&max=1). That ought to do it.HTH, M -- Maurice Rickard http://mauricerickard.com/------------------------------------------------------------- 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: Picking a random entry from a .db (Matthew Bohne 2001)
  2. Re: Picking a random entry from a .db (Maurice Rickard 2001)
  3. Re: Picking a random entry from a .db (Nitai @ ComputerOil 2001)
  4. Picking a random entry from a .db (Matthew Bohne 2001)
At 9:31 AM 11/21/01, Matthew Bohne wrote: >My questions is... can I, or How can I search and pull one random >entry from the database? > >[search db=angeltree.db& .......Add to your search criteria something that'll pull all results you'd potentially want from the db (nezipdata=0, for example), sort it randomly (&zipsort=1&zipsdir=ra), and return only one result (&max=1). That ought to do it.HTH, M -- Maurice Rickard http://mauricerickard.com/------------------------------------------------------------- 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/ Maurice Rickard

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:

All questions are welcome on this list (1997) '0' vs. blank (2005) Document Contains No Data! (1997) Mac: [ListFiles] bug alert (1997) MacAuthorize order data fields WAS:How To question... (1997) Purchase Plugin Missing (1996) Summing fields (1997) WCS Newbie question (1997) More news on 5.0 (2003) View order not right (1997) Re2: frames & carts (1997) using showpage and showcart commands (1996) Execute Applescript (1997) Netscape v. IE (1997) WebCat2 - many [carts] on one template page? (1997) HTML Editors (1997) [shell} (2005) Partner Edition question ... (2003) Passing Cart variable to subdirectory files? (1997) Forumulas.db & Variables (2002)