When I tried to select records for specific month and year when I search I found half a solution
mysql: select all entries from a particular month using PHP
select *
from thetable
where monthname(date_field) = 'February'
then i modify it following
select *
from payments
where monthname(date) = 'February' and EXTRACT(date )='2011';
but it show error what is correct way to select mounth and year
in my table i store date as 2011-2-4
it seems that your column is not in a
Datedata type, so the best way you can do is to convert it first toDATEusingSTR_TO_DATE