Jump to content

how to make a budget system


juicepotion

Recommended Posts

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

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?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.