Hi,
I have a table with 3 columns - id, monthdate and uniques
'id' is an auto increment primary key column, monthdate is column with the date like this: YYYY-MM-DD and uniques is an integer
The data in the table goes back to January 2000 until the present date.
I run a query on the database and all of the data is put into an array using mysql_fetch_array. What I need to do is, total all the 'uniques' for each month and output a table of monthly totals. I also need to output the % differance between the uniques figure for the any month and the previous month.
Anyone have any ideas where I could start with this?
Thanks,
Martin