Mysql select every two months

Hi everybody.

I have an application that send emails to subscribers every week, every 14 days and every month, I select this information using an sql script every day.
Now i need to implement the two months subscription.
I like to make an sql select that retrieves this information and send the newsletter (for months with more than 28 days i'm sending the month email on 28th day)
Thanks for all your help.

Byron H.
silencewAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ioannis AnifantakisProgramming InstructorCommented:
how about using modulo?

like....

select ...........
from ..........
where ............
and day(current_date)=28
and month(current_date) % 2 = 0

That will return true for all even months
while the

and month(current_Date) % = 1
will return true for all odd months
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Ioannis AnifantakisProgramming InstructorCommented:
Anyone there?
Waiting for responce
0
silencewAuthor Commented:
Sorry for the delay,
Thanks it works good :D
Byron H.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.