On 10 Oct 2008, at 10:35, Jay Pangmi wrote:


Frederick Cheung wrote:
Your would just retrieve the cart object and destroy it.

Fred

Ya, that's what. As the details inserted into that "carts" table aren't
necessarily the ones the customer would have done and its needed just
till the time of session, I have made "carts" table thinking it will
just hold the temporary values and whenever customer hits "Emtpy cart"
button, I wanted all the details related with that session deleted from
this "carts" table as well. And after finalising the details and the
payment is done then only the details from here be stored in
corresponding tables permanently. If my logic is right can you please
suggest me any better..
thanks..

I'm not sure what the stumbling point is here. carts are objects in the db, you have the ids of those objects in the session, what more do you need to destroy them ?

Fred

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to