JamesGMills
Programmer
Hi everyone.
I am developing a tracking system. Every hit is recorded in a database with reference to the section and article that was hit. It also addds a TIMESTAMP to this record.
I would now like to show a report showing how many hits there have been per month.
I have no idea how to do this using the TIMESTAMP in mysql.
SELECT COUNT(*) FROM tracker WHERE dateTime ??
I need to group the hits together so that i only display months and years that there is actually data for too.
Any ideas?
Thanks
I am developing a tracking system. Every hit is recorded in a database with reference to the section and article that was hit. It also addds a TIMESTAMP to this record.
I would now like to show a report showing how many hits there have been per month.
I have no idea how to do this using the TIMESTAMP in mysql.
SELECT COUNT(*) FROM tracker WHERE dateTime ??
I need to group the hits together so that i only display months and years that there is actually data for too.
Any ideas?
Thanks