i have a database consists of4 fields for example:
name date Description Amount
Ali 05/04/2012 Salaries 2000$
Ali 08/04/2012 commission 100$
ALi 11/04/2012 Transport 100$
Ali 05/05/2012 Salaries 2000$
Ali 08/05/2012 commission 100$
ALi 11/05/2012 Transport 100$
in case i need to retrieve information and inquiries about the salary page , for Ali Only i need the statement of each month to be separately by separate line and sum of the total amount during that month
i need to know how to do this in mysql PHP Script .