Re: Random Generator

This WebDNA talk-list message is from

2005


It keeps the original formatting.
numero = 62102
interpreted = N
texte = The only problem with that code, I think, is that it wouldn't really be a randomly generated list. It would always return the same listings (depending on the category selected), sorted by the SKU. Am I right? Regards, Ki Song ---------- Knifecenter, Inc. 5111 Berwyn Road STE 110 College Park, MD 20740 (301) 486-0901 ki@knifecenter.com > From: Clint Davis > Reply-To: "WebDNA Talk" > Date: Thu, 02 Jun 2005 14:20:51 -0500 > To: "WebDNA Talk" > Subject: Re: Random Generator > > Assuming that you have a CATEGORY field and a SKU field, try this: > > [search db=your.db&eqCATEGORYdatarq=yourcategory&raSKUsort=1] > > > On 6/2/05 1:55 PM, "Ki Il Song" wrote: > >> Is there an easy way to display random products? >> >> Our company, Knifecenter.com would like to display random types of knives >> within a certain category. I know how to list a certain category, using >> different fieldsin our database of products (ie WWWCat_1), but I don't know >> how to randomly generate a list of products within that category. >> >> Is there an easy call for random numbers in WebDNA? > > > > > ------------------------------------------------------------- > 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/ ------------------------------------------------------------- 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 Generator ( Ki Il Song 2005)
  2. Re: Random Generator ( Ki Il Song 2005)
  3. Re: Random Generator ( Clint Davis 2005)
  4. Random Generator ( Ki Il Song 2005)
The only problem with that code, I think, is that it wouldn't really be a randomly generated list. It would always return the same listings (depending on the category selected), sorted by the SKU. Am I right? Regards, Ki Song ---------- Knifecenter, Inc. 5111 Berwyn Road STE 110 College Park, MD 20740 (301) 486-0901 ki@knifecenter.com > From: Clint Davis > Reply-To: "WebDNA Talk" > Date: Thu, 02 Jun 2005 14:20:51 -0500 > To: "WebDNA Talk" > Subject: Re: Random Generator > > Assuming that you have a CATEGORY field and a SKU field, try this: > > [search db=your.db&eqCATEGORYdatarq=yourcategory&raSKUsort=1] > > > On 6/2/05 1:55 PM, "Ki Il Song" wrote: > >> Is there an easy way to display random products? >> >> Our company, Knifecenter.com would like to display random types of knives >> within a certain category. I know how to list a certain category, using >> different fieldsin our database of products (ie WWWCat_1), but I don't know >> how to randomly generate a list of products within that category. >> >> Is there an easy call for random numbers in WebDNA? > > > > > ------------------------------------------------------------- > 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/ ------------------------------------------------------------- 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/ Ki Il Song

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:

Webmerchant confirmation hooks? (1997) Why isn't this working (1999) %@#*& back button!!! (1999) two unique banners on one page (1997) Max Record length restated as maybe bug (1997) Ken's grep question about renaming files to lowercase (2003) [input] [/input] (1997) WebCatalog 4.0.1 has been released! OSXS (2000) Search/sort in URL Was: GuestBook example (1997) Help! WebCat2 bug (1997) Problems searching from a FORM (1997) carriage returns in data (1997) Nested tags count question (1997) Emailer problem (1998) WebCatalog memory error. (1998) Cookie woes with Mac IE4 (1998) Keep away (1997) Type 11 errors setting up WebCAt 2 (1997) Emailer setup (1997) Problem 2: Prefs file... (1997)