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:

WebCat2b12 - nesting [tags] (1997) Encrypt and Commit Me (1998) WebCat2b12plugin - [search] is broken ... not! (1997) Webstar 1.3.1 PPC (1997) WebCat2b13MacPlugin - [math][date][/math] problem (1997) WebCat for Unix?? (1997) [OT] FTP client (2003) HomePage Caution (1997) WebMerchant Mac 3.0 beta available (1998) [searchString] (1997) Thanks ! (1997) Extra carriage returns (1999) Alternating colors (1997) (2000) Database Strategy - more... (1998) Problems getting parameters passed into email. (1997) No shipping systems available? (1998) Running on Empty (1999) Math with Time (1997) SKU Question (1999)