Dysan Posted November 16, 2007 Share Posted November 16, 2007 How do shopping baskets remember what they contain? Do they use arrays? Quote Link to comment Share on other sites More sharing options...
teng84 Posted November 16, 2007 Share Posted November 16, 2007 yah... shopping basket or shopping cart uses session or cookie but mostly session they use array which is session value Quote Link to comment Share on other sites More sharing options...
pocobueno1388 Posted November 16, 2007 Share Posted November 16, 2007 Depending on how you want it to work, and your website setup a database can be used as well. Quote Link to comment Share on other sites More sharing options...
teng84 Posted November 16, 2007 Share Posted November 16, 2007 Depending on how you want it to work, and your website setup a database can be used as well. hehe if you use databse that is not "shopping basket" or shopping cart that is called wish list Quote Link to comment Share on other sites More sharing options...
pocobueno1388 Posted November 16, 2007 Share Posted November 16, 2007 Depending on how you want it to work, and your website setup a database can be used as well. hehe if you use databse that is not "shopping basket" or shopping cart that is called wish list Why couldn't you use a database to store what is in their shopping basket? Makes sense to me...if you want the items to be "remembered" for a long period of time, sessions aren't going to cut it. There are multiple ways to do things in PHP, so there isn't really a wrong way. It just all depends on what the person wants. Quote Link to comment Share on other sites More sharing options...
teng84 Posted November 16, 2007 Share Posted November 16, 2007 Depending on how you want it to work, and your website setup a database can be used as well. hehe if you use databse that is not "shopping basket" or shopping cart that is called wish list Why couldn't you use a database to store what is in their shopping basket? Makes sense to me...if you want the items to be "remembered" for a long period of time, sessions aren't going to cut it. There are multiple ways to do things in PHP, so there isn't really a wrong way. It just all depends on what the person wants. DUDE LISTEN i dont say you cant save it in the database but heres what i said if you use database that is called wish list <<<<< if you use session or cookies that is shopping cart or shopping basket<<< hehe thats all Quote Link to comment Share on other sites More sharing options...
pocobueno1388 Posted November 16, 2007 Share Posted November 16, 2007 Well, I guess we're going to have to agree to disagree. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.