juicepotion Posted August 2, 2010 Share Posted August 2, 2010 I would like to make a budget system where the user enter their preferred budget, then the system will generate a package based on the budget enter, system will generate the budget package based on the database. For example, i have 4 categories - flower, cake, hotel & bridal house user enter budget of $100, system will then check through the database, come out with a package which include each of the categories above. output should be flower:30 cake:20 hotel:30 bridal house:20 how should i do that? what math should i use? probability? Link to comment https://forums.phpfreaks.com/topic/209548-how-to-make-a-budget-system/ Share on other sites More sharing options...
Pikachu2000 Posted August 2, 2010 Share Posted August 2, 2010 Probability of what? Your example appears to be just percentages of the amount entered. Link to comment https://forums.phpfreaks.com/topic/209548-how-to-make-a-budget-system/#findComment-1093982 Share on other sites More sharing options...
juicepotion Posted August 2, 2010 Author Share Posted August 2, 2010 i mean i want the output to be like this: **taken from database flower: $30 cake: $20 hotel: $30 bridal house:$20 meaning user enter $100, system can come out the package that total not more then $100. you got what i mean? how can i come out such result? Link to comment https://forums.phpfreaks.com/topic/209548-how-to-make-a-budget-system/#findComment-1093986 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.