ok,
i am back to this issue.
i forgot that i needed to store a sku number also for each item. So i have to store the product ID, qty for each and the SKU # for each item in the cart. unfortunately, not all items have sku numbers and the way we do it, you have one record with multiple skus if available.
i think that the way i had it orgianlly (posted at top) is ok. it is fast but if there is a way to optimize it, please fire away.
ALSO....
register_gloals are now OFF. i am having real problems being able to read and display the cart contents now. how would i access a value of an item in a session variable named "mycart" with a value of rand()?
i have tried a few thigns but nothing seems to be working. i think i am leaving out a very basic step.
when i add something to the cart or even go through a few pages, i check the phpinfo() and i dont see the session var mycart. WHY????
hopefully this makes sense.
thanks