Would appreciate help on this one, relatively new to PHP.
I have created a table in a MySQL Database with 2 columns, one with date (from a hidden form) and the other with a series of events selected from a drop down menu by user (eg. circus, theatre, cinema etc.).
Could someone help out with an example of PHP code to create an MySQL query that returns an array of dates (sorted into quarters ie. 3 monthly) with a count of the corresponding number of times each event was logged in that specific quarter.
The purpose would be to send this array to jpgraph to plot a line (or bar) graph of logged events over time selected by user, eg. 1-2 years.
Grateful for any assistance.
P
I have created a table in a MySQL Database with 2 columns, one with date (from a hidden form) and the other with a series of events selected from a drop down menu by user (eg. circus, theatre, cinema etc.).
Could someone help out with an example of PHP code to create an MySQL query that returns an array of dates (sorted into quarters ie. 3 monthly) with a count of the corresponding number of times each event was logged in that specific quarter.
The purpose would be to send this array to jpgraph to plot a line (or bar) graph of logged events over time selected by user, eg. 1-2 years.
Grateful for any assistance.
P