Ok I'm trying to calculate race results correctly for a customer. Basically there are 2 runs and so lets say the following
Last_name | run1 | run2 |
martinez 1 4
geoff 20 16
Ok so I need to be able to get the following totals for each person:
Martinez avg for both runs should put him at (3)
Geoff avg for both runs should put him at (19)
How can I calculate this in php?
I have tried the following but doesnt give me accurate results:
$test = round(($query['run1'] + $query['run2'])/2);
echo $test