I'm building a shopping cart for a site that is selling a single item, a pillow, but with options for the buyer including size, fabric, etc.
I've set up a from that's sent to the add/viewcart page with the necessary variables. What I can't seem to get right, is to give each order-item a unique id so I can go back and build the viewcart table with it. I originally set a time stamp in a hidden variable on the form page, but that didn't work because IE caches the page sometimes no matter how I tell it not to (bug in IE), so the id was repeating.
I then thought I would let MySQL give the unique ID an an autoincremented field as the order is put in the db, but then how do I pull that exact order right back out to extract the id that I want to use as the cart/session variable?
Thanks for any ideas,
Leland Myrick