Re: New Cart No. on same page

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 47342
interpreted = N
texte = on 1/31/03 1:43 PM, Matthew Bohne at matthewbohne@sanduskyregister.com so noted...> So, it's all occurring on one page. If I call a [cart] on that page, any > following carts will be the same number. > > So there is no [newcart] function?I've used this line of code for years to generate a unique, consistently-formatted value (generally for establishing internal relationships between database records, as the value is more machine-friendly than human).[date format=%y%m%d%H%M%S]-[getchars start=1&end=6][random][random][random][random][random][random][/getchars]*If* two numbers are generated in the same second and *if* the random number strings happen to hit the same sequence, you've got a problem. Probably don't want to use it in a case where you're generating billions of numbers per second. Rob Marquardt Designer/Resident Wirehead Toast Design800 Washington Avenue North Minneapolis MN 55401 612.330.9863 v 612.321.9424 f www.toastdesign.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: New Cart No. on same page (Marko Bernyk 2003)
  2. Re: New Cart No. on same page (Dan Strong 2003)
  3. Re: New Cart No. on same page (Rob Marquardt 2003)
  4. Re: New Cart No. on same page (Alex McCombie 2003)
  5. Re: New Cart No. on same page (Alex McCombie 2003)
  6. Re: New Cart No. on same page (Rob Marquardt 2003)
  7. Re: New Cart No. on same page (Alex McCombie 2003)
  8. Re: New Cart No. on same page (Rob Marquardt 2003)
  9. Re: New Cart No. on same page (Matthew Bohne 2003)
  10. Re: New Cart No. on same page (John Peacock 2003)
  11. Re: New Cart No. on same page (Donovan 2003)
  12. Re: New Cart No. on same page (Matthew Bohne 2003)
  13. Re: New Cart No. on same page (Gyuri 2003)
  14. Re: New Cart No. on same page (Glenn Busbin 2003)
  15. Re: New Cart No. on same page (Matthew Bohne 2003)
  16. Re: New Cart No. on same page (Alex McCombie 2003)
  17. Re: New Cart No. on same page (Gary Krockover 2003)
  18. New Cart No. on same page (Matthew Bohne 2003)
on 1/31/03 1:43 PM, Matthew Bohne at matthewbohne@sanduskyregister.com so noted...> So, it's all occurring on one page. If I call a [cart] on that page, any > following carts will be the same number. > > So there is no [newcart] function?I've used this line of code for years to generate a unique, consistently-formatted value (generally for establishing internal relationships between database records, as the value is more machine-friendly than human).[date format=%y%m%d%H%M%S]-[getchars start=1&end=6][random][random][random][random][random][random][/getchars]*If* two numbers are generated in the same second and *if* the random number strings happen to hit the same sequence, you've got a problem. Probably don't want to use it in a case where you're generating billions of numbers per second. Rob Marquardt Designer/Resident Wirehead Toast Design800 Washington Avenue North Minneapolis MN 55401 612.330.9863 v 612.321.9424 f www.toastdesign.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/ Rob Marquardt

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:

Problem with new formvariables (2000) RE: WebCat vs. ASP (1999) Setting up shop (1997) t or f (1997) Authenticate (1997) Newbie Tax Question (1997) Greeting Card System (2000) OT - How to pay commissions to non US affiliates? (2000) re:WebCatalog and Filemaker (1996) NT considerations (1997) Big Databases (1997) (1997) Internet Explorer and caching (2000) [WebDNA] Range calculation w/negative values (2011) decrypt trouble - solved (2006) Generating unique SKU from [cart] - Still Stumped... (1997) LetterRip and WebCat & more (1998) RE: E-mailer error codes (1997) Purchased cart being overwritten (1997) Frames and WebCat (1997)