Creating 30 days of sales report from your mysql  table by using a small piece of code to retrieve it.