I'm using Open Flash Chart to create statistics and one of the things i need to be able to do is generate a Stacked Bar Chart.
Logically i need to be able to Group all the distinct Month/Year combinations, Dec 2009, Jan 2010, Feb 2010 etc. and then from that group all the various rows, i.e. the different types of enquiry a visitor made (via website, via email, via phonecall)
at the moment the table attributes look like this:
id (int, auto increment) date_time(date time format) type (enum, visit, website, phone, email)
Any suggestions? I've tried a few things and haven't had much luck.