Advice on a item calculator
Posted: Thu Apr 08, 2010 11:07 pm
Could anyone give me any advice on the best way to do a Calculator section .
what i am trying to do is when you have a large order to do for say a clan/guild and you need different amounts .
like
5 breast plates needs 6 bars to make a plate
4 Gloves needs 4 bars to make a set of gloves
3 swords needs 5 bars to make a sword and also 1 peive of wood for handle
all made from different metals like
bronze that uses 2 raw ores to make a bar
silver that uses 4 raw ores to make a bar
gold that uses 8 raw ores and 2 coal to make a bar
would it just be wise to do it all via php (if do the code for the page would be huge)from all the variables
or do it via php sql using the database to hold the infomation on what is need to make each item.
after that i have confused myself as to how to pull info out as i want it to add up to let me know the total amount of resource needed.
thanks for you help
what i am trying to do is when you have a large order to do for say a clan/guild and you need different amounts .
like
5 breast plates needs 6 bars to make a plate
4 Gloves needs 4 bars to make a set of gloves
3 swords needs 5 bars to make a sword and also 1 peive of wood for handle
all made from different metals like
bronze that uses 2 raw ores to make a bar
silver that uses 4 raw ores to make a bar
gold that uses 8 raw ores and 2 coal to make a bar
would it just be wise to do it all via php (if do the code for the page would be huge)from all the variables
or do it via php sql using the database to hold the infomation on what is need to make each item.
after that i have confused myself as to how to pull info out as i want it to add up to let me know the total amount of resource needed.
thanks for you help