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:

Summing a field full of numbers ... (1997) There's a bug in the math context ... (1997) Narrowing NT Crashing error (2000) [WebDNA] Double sendmails (2014) Friday night shopping site joke (1997) WebCatalog NT beta 18 now available (1997) Ranking search results (2002) Is it possible to pause or wait a process (2000) [WebDNA] mod_WebDNA_apache2.2.so: mach-0, but wrong architecture (2010) Protect (1997) BadSuffix with 2.1b3 cgi (1997) Attn: Bug in GeneralStore example b15 (1997) Merging databases (1997) WebCatalog2 Feature Feedback (1996) .hdr files (2004) suggestion (1997) Searching by Date Comparison (2000) [sql] problems in WebCat 4.0 (2000) WebCat2 - Getting to the browser's username/password data (1997) sendmail spaces (1997)