I have an SQL table like this: sales(product,timestamp)
I want to display a chart using the Open Flash Chart, but I don't know how to get the total sales per hour in the last 12 hours. (timestamp column - sale date)
As an example, I will have such an array: array(12,5,8,6,10,35,7,23,4,5,2,16)each number is the total sales for each hour.
Note. I want to use php or just mysql for this.
thank
source
share