Magial
04-06-2004, 08:25 AM
Hey, first off, dont bash me for being a newbie with php, Im trying to learn it as efficiently as I can :);)
Anyway, Im kinda at a loss as to where to start with the equations, I guess you can call them that.
What I am trying to do, is devise a system that has 3 values. A high, an Average, and a Low. Then, if you submit another value to it, it will automatically change the average and if the submited value is higher it will change the previous high to the submited high, and the same system with the low. Does that make sence?
It doesnt seem that complicated.. just I dont know enough php to get this set up. I was just using HTML tables and doing the math myself, but now Id like to have a more eased system of doing things. Anyone feel like directing me on a path to move on?
By the way, this has nothing to do with homework, its actually to work with prices for a game Im playing, and to find a good high/low price to buy/sell... just to get that outta the way ;).
Thanks for any help you guys give me, Im extremely sure that it will be very valuable and helpfull.
Anyway, Im kinda at a loss as to where to start with the equations, I guess you can call them that.
What I am trying to do, is devise a system that has 3 values. A high, an Average, and a Low. Then, if you submit another value to it, it will automatically change the average and if the submited value is higher it will change the previous high to the submited high, and the same system with the low. Does that make sence?
It doesnt seem that complicated.. just I dont know enough php to get this set up. I was just using HTML tables and doing the math myself, but now Id like to have a more eased system of doing things. Anyone feel like directing me on a path to move on?
By the way, this has nothing to do with homework, its actually to work with prices for a game Im playing, and to find a good high/low price to buy/sell... just to get that outta the way ;).
Thanks for any help you guys give me, Im extremely sure that it will be very valuable and helpfull.