Hi,
I have a database query that outputs values, such as the cost of cars.
car_id car_value
1 20000
2 5000
3 1000
4 40000
and so on....
How do I then write some PHP code, to add all these "car_values" from the result of the query. So if usingt he exampel above, I want to sum up, find the total, 20000+5000+1000+40000=66000
Hope someone can help. My knowledge of PHP is very little.