vomitbomb Posted May 8, 2008 Share Posted May 8, 2008 Hey there, I'm putting together an ordering system and I'm just looking for idea's on how to organise this data. Say I've got an item, the type of item, then I can have quantity. At the moment the user can only select 1 type of item, then add how many they want. So if they want 2 different types it's not gonna work. hmmm.. Anyone got any idea's on how I could solve this problem without creating too many values to keep track of? Link to comment https://forums.phpfreaks.com/topic/104706-solved-ideas-for-an-ordering-system/ Share on other sites More sharing options...
revraz Posted May 8, 2008 Share Posted May 8, 2008 Do you have access to a database? Link to comment https://forums.phpfreaks.com/topic/104706-solved-ideas-for-an-ordering-system/#findComment-535894 Share on other sites More sharing options...
vomitbomb Posted May 8, 2008 Author Share Posted May 8, 2008 Yeah thats what I'm using, mysql. Link to comment https://forums.phpfreaks.com/topic/104706-solved-ideas-for-an-ordering-system/#findComment-535921 Share on other sites More sharing options...
947740 Posted May 8, 2008 Share Posted May 8, 2008 Then...the simple solution is to use the database. Link to comment https://forums.phpfreaks.com/topic/104706-solved-ideas-for-an-ordering-system/#findComment-535924 Share on other sites More sharing options...
The Little Guy Posted May 8, 2008 Share Posted May 8, 2008 store the items in a session, your session would look like this: Array ( item1 => Array ( id => 1293 price => '19.99' quantity => 2 name => 'Smelly Roses' ) item2 => Array ( id => 3524 price => '24.95' quantity => 8 name => 'Seed' ) ) Link to comment https://forums.phpfreaks.com/topic/104706-solved-ideas-for-an-ordering-system/#findComment-535952 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.