thomo03 Posted February 24, 2009 Share Posted February 24, 2009 Hi there, I've recently started programming with PHP, read a few tutorials, and manage to send info, like on a shop. A user clicks an item, and they are told they have ordered that item. The one thing I can't do is, say somebody orders an item which take 3 hours to make, yet another person makes an order, but that also takes 3 hours to make. The problem is, for that customer they are 2nd in line, so it will actually take 6 hours to make. Is this simple enough, or does it take a lot to intergrate?! Does anybody have examples? Thanks. James Link to comment https://forums.phpfreaks.com/topic/146721-calculate-sum/ Share on other sites More sharing options...
Mark Baker Posted February 24, 2009 Share Posted February 24, 2009 The code logic is actually quite complex, but is basically the logic used by project management software. It isn't quite as simple as 3+3 = 6, because the people who make these items aren't going to be working 24 hrs a day, it may be possible for one person to make two items at the same time, etc Link to comment https://forums.phpfreaks.com/topic/146721-calculate-sum/#findComment-770360 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.