So I've got a Database with one table. And inside that table are 13 fields. 11 of the fields hold numerical data, and the other two are the 'id' fields and the 'datejoined' fields. Now excluding those two fields, I would like to add up all of the numbers in the fields and display them in a HTML table. Now I think I'll have to use a SELECT SUM(table) query... but how do I exclude the datejoined and id fields? Also, I want the data to be displayed as a yearly total, so would I do something like:
WHERE datejoined BETWEEN 'thisyear'
is there even a thisyear variable for timestamps 😉
anyway, I'm hoping that somebody can help me out
thanks in advance
Jim