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 sonoted...> 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 internalrelationships between database records, as the value is moremachine-friendly than human).[date format=%y%m%d%H%M%S]-[getcharsstart=1&end=6][random][random][random][random][random][random][/getchars]*If* two numbers are generated in the same second and *if* the random numberstrings happen to hit the same sequence, you've got a problem. Probablydon't want to use it in a case where you're generating billions of numbersper second.Rob MarquardtDesigner/Resident WireheadToast Design800 Washington Avenue NorthMinneapolis MN 55401612.330.9863 v612.321.9424 fwww.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:
on 1/31/03 1:43 PM, Matthew Bohne at matthewbohne@sanduskyregister.com sonoted...> 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 internalrelationships between database records, as the value is moremachine-friendly than human).[date format=%y%m%d%H%M%S]-[getcharsstart=1&end=6][random][random][random][random][random][random][/getchars]*If* two numbers are generated in the same second and *if* the random numberstrings happen to hit the same sequence, you've got a problem. Probablydon't want to use it in a case where you're generating billions of numbersper second.Rob MarquardtDesigner/Resident WireheadToast Design800 Washington Avenue NorthMinneapolis MN 55401612.330.9863 v612.321.9424 fwww.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)