php - Query Database for a specific Month of birthdays -
i trying query against database have contacts have birthdays in date format such (1980-03-13) (year-month-date). query database birthdays within (03) month. how possible?
if shed light appreciated.
ps. using php queries mysql.
update: mysql table contacts has (dob field) format = (date).
select * table month(column) = 3
if string
select * table month(cast(column datetime)) = 3
Comments
Post a Comment