I have a table that has the following colums date,sales and purchases .
I need mysql or php code that will give me quarter report's depending on the start of the company's
financial year so it can be in a config file say $financial_start = 2010-05-01 ;
It then needs to work out the quarter sales , and purchases and give it to me in a table format .
All help will be appreciated .