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:
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)