I am creating an analytics tracking script using PHP and MySQL.
Currently I am logging website visits to MySQL in a table using a “Timestamp” type field.
Is there a way to graph these timestamps to show traffic over a certain amount of time? Or, would I first need to create another table to hold the actual counts from the set day or hour or whatever period I am graphing?
I am just trying to do a simple line graph
http://jpgraph.net/ seems to be fairly popular, and relatively easy to use. Google have also got a visualisation library. You should be able to create an array holding the information you want to display in a graph using a single SQL statement – what have you tried so far?