Dysan Posted November 16, 2007 Share Posted November 16, 2007 How do shopping baskets remember what they contain? Do they use arrays? Link to comment https://forums.phpfreaks.com/topic/77553-shopping-basket/ 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 Link to comment https://forums.phpfreaks.com/topic/77553-shopping-basket/#findComment-392554 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. Link to comment https://forums.phpfreaks.com/topic/77553-shopping-basket/#findComment-392558 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 Link to comment https://forums.phpfreaks.com/topic/77553-shopping-basket/#findComment-392560 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. Link to comment https://forums.phpfreaks.com/topic/77553-shopping-basket/#findComment-392565 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 Link to comment https://forums.phpfreaks.com/topic/77553-shopping-basket/#findComment-392568 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. Link to comment https://forums.phpfreaks.com/topic/77553-shopping-basket/#findComment-392570 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.