ok, I am running into a delema here. I am currently in the process of building my own shopping cart (I know, "why re-invent the wheel" - 1. I need the practice with my PHP and MySQL 2. I would rather write my own script rather than trying to waste hours learning someone elses.)
The problem that I am having is exactly how should I handle the cart.
Should I :
A.) Create a session for each user and store the cart information in cookies, then upon checkout pump the contents into the database. (Preferable for me to limit connections to the database).
or
B.) Insert all new visitors into a temp table and store their session_id and cart choices in the database until checkout.
For me B is definitely the easiest to accomplish, However as I mentioned above I would like to limit connections to the DB and I believe that it will be less maintainance to store the information using session vars.
Currently I have not been able to get version A to work correctly.
Any thoughts or input on this matter are greatly appreciated!
Steve