Random Sort Problem

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 52878
interpreted = N
texte = Hi For some reason this is not working and I can't think why. All I want is to search a db for all the records that have MOREDETAIL=T and return one random record. What am I doing wrong? (This is all in one line in case the email splits it) [search db=Admin/People.db&eqMOREDETAILdatarq=T&SURNAMEsort=1&SURNAMEdir=ra&max=1] I am always getting the same record returned. If I increase the max number I get the 4 records that correctly have T in the MOREDETAIL field but there always sorted in the same order. Any help much appreciated - OSX 10.2.6 with WC 5.0.0 and iTools7 Cheers ======================================== Steve Craig - Asylum Interactive Ltd Tel +44 1224 642960 Fax +44 1224 642962 ======================================== http://www.asylumweb.com Email: steve@asylumweb.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://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Random Sort Problem ( Steve Craig 2003)
  2. Re: Random Sort Problem ( Donovan 2003)
  3. Random Sort Problem ( Steve Craig 2003)
Hi For some reason this is not working and I can't think why. All I want is to search a db for all the records that have MOREDETAIL=T and return one random record. What am I doing wrong? (This is all in one line in case the email splits it) [search db=Admin/People.db&eqMOREDETAILdatarq=T&SURNAMEsort=1&SURNAMEdir=ra&max=1] I am always getting the same record returned. If I increase the max number I get the 4 records that correctly have T in the MOREDETAIL field but there always sorted in the same order. Any help much appreciated - OSX 10.2.6 with WC 5.0.0 and iTools7 Cheers ======================================== Steve Craig - Asylum Interactive Ltd Tel +44 1224 642960 Fax +44 1224 642962 ======================================== http://www.asylumweb.com Email: steve@asylumweb.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://webdna.smithmicro.com/ Steve Craig

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 fields (1997) [WebDNA] Clean URLS job - will pay (2010) Ok here is a question? (1997) Re1000001: Setting up shop (1997) Help! WebCat2 bug (1997) [WebDNA] WebDNA7 and mod_fcgi (2013) customizing the color of user's pages (1997) webcat error log (1998) WebCatalog and WebMerchant reviewed by InfoWorld (1997) Fwd: Problems with Webcatalog Plug-in (1997) Loop code problem (2000) Opinion: [input] should be called [output] ... (1997) Best Catalog Program (1998) info (1997) 2.0.1 new commands and contexts (1997) PhotoMill -> PhotoMaster (1997) Note added to [sendmail] in Docs (2004) WebCat2b13MacPlugIn - More limits on [include] (1997) Simple way to create unique SKU (1997) turning every 5th line red (1998)