codice:
select date_format(acc_data,"%d/%m/%Y") as giorno,count(acc_data) as accessi
from tabella
where acc_data > curdate() - interval 1 month
group by giorno
order by acc_data
Una volta estatti i record li inserisci nell'array nella modalità richiesta da jpgraph.