Month wise data fetch from date field in mysql.
I have a table name salary_details and my table data looks like attached Image. Please see the image to solve my problem.
i am using following code of php.
"select *, SUM(amount) as amt from salary_details group by month,name"