I have a mysql table that looks like this:
id - year - value
-----------------
1 - 2004 - 10
2 - 2005 - 15
3 - 2006 - 8
4 - 2006 - 14
5 - 2007 - 20
6 - 2008 - 25
I need to be able to fetch this array from mysql and have the the two 2006 values added together. How do I do this?
1 Answer