Ive set up a database to handle user cart/ basket.
It stores it to database, and will erase at the end. So it only holds the info temporarily. I think that part is cool
because i wont be confusing and tangling all my SESSIONS that i have goin on.
the problem Im having is , the records all are fetched from the database and display fine.
but at the end i want to add up all the totals. and also output all the product info to a mailed receipt/invoice mail form.
and so when i make a SESSION for something like total. its only going to catch the last variable and not all of the unique instances of total.
so how can i make them each unique to assign them to their own variable , so that i can add them all up for some grand total or somethin?
Also, Im trying to figure out best way to echo all the cart info out to a mail form . where each variable would again have to be unique instances.
Any idea?
Thank You !