I am designing a website for online shopping. i need the option of " add to shopping cart" . A user can add any item to his shopping cart. how can i do so?? if i do this by creating table in database the how can i create dynamic tables in database?? please suggest me any other option too.. thanhx.
What does adding an item to a shopping cart have to do with creating table? The table should have been created before the web app containing the shopping cart was ever first run, no? Or are you proposing to create a new table for each user? That would be such an unusual design that I would strongly urge you to reconsider.
Well, A shopping cart is implemented using Sessions, but I agree with Tim that you have to rethink a little because there are some weird concepts mixed...
Advanced shopping carts will generally use a number of solutions, including cookies, the session, and a database to account for the numerous situations (logged in vs. not logged in, and so on).