Re: Using [random]

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 24019
interpreted = N
texte = >Hi folks, > >I would like to return a random record out of a database ...Use the parameter FieldNamesdir=ra to sort the FieldName field randomly, then use max=1 to show only the first record of that random sort:[search db=xxx.db&nefieldNamedata=[blank]&fieldNamesdir=ra&max=1]This is explained in the HTML docs under searching ... :)Sincerely, Kenneth Grome WebDNA Consultant Associated Messages, from the most recent to the oldest:

    
  1. Re: Using [random] (Kenneth Grome 1999)
  2. Re: Using [random] (Kenneth Grome 1999)
  3. Re: Using [random] (Kenneth Grome 1999)
  4. Re: Using [random] (Christer Olsson 1999)
  5. Using [random] (webcat 1999)
  6. Using [random] (webcat 1999)
>Hi folks, > >I would like to return a random record out of a database ...Use the parameter FieldNamesdir=ra to sort the FieldName field randomly, then use max=1 to show only the first record of that random sort:[search db=xxx.db&nefieldNamedata=[blank]&fieldNamesdir=ra&max=1]This is explained in the HTML docs under searching ... :)Sincerely, Kenneth Grome WebDNA Consultant 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:

is sku a REQUIRED field on NT (1997) problems with 2 tags (1997) WebSTAR 2.1 freezes my Mac (1997) all records returned. (1997) Setting Lineitems (2005) WILDWEBCAT encrypt.tpl submission (1998) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) WC2b15 - [HTMLx]...[/HTMLx] problems (1997) anyone using encrypted templates on non-US NT OS (1999) delete file (2000) b12 cannot limit records returned and more. (1997) the dreaded unitShipCost (2003) [cart] not being interpreted inside [founditems] (1997) Greater then less then (2001) macosx 1 process, linux N processes, macosx chokes under load (2001) Protecting databases (1999) Location of Browser Info.txt file (1997) WebCat2b13MacPlugIn - [include] (1997) Emailer again & again (1997) Emailing html (1998)