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:
Can WebCatalog.debug solve my problem? (2000)
Problems with [Applescript] (1997)
A dynamic database. (1997)
WebCatalog2 Feature Feedback (1996)
ups calculator (2000)
WebCat2: Items xx to xx shown, etc. (1997)
Causes Site to Crash... (2000)
changing creator codes (2000)
Security Issues and WebCommerce Solution (1997)
How did *you* learn Web Catalog? (2000)
Quick Question (1997)
[isfile] ? (1997)
Moment of Thanks (1997)
Problem with summary on date / inconsequent webcat behaviour (1998)
long list formatted in a table (2004)
Photo Album (2000)
Issues with the default db files ... (2003)
[WebDNA] Best practice re: password storage (2013)
Re:Emailer and encryption (1997)
Quit revisited (1997)