Forum Moderators: coopster

Message Too Old, No Replies

select mysql by months

select, mysql, subscription

         

silence

10:09 pm on May 22, 2009 (gmt 0)

10+ Year Member



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. But now i need to implement the two months subscription.
I like to make an sql select that retrieves all the suscriptions by day so i can send the email to the people that subscribe for this newsletter.
Thanks for all your help.

Byron H.

penders

12:49 am on May 26, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



How do you currently implement the other subscriptions?

silence

5:30 pm on May 26, 2009 (gmt 0)

10+ Year Member



Hi.
Actually, I'm doing every day a select in the database.
For example, for the weekly list, i do:
SELECT u.* FROM users_list u WHERE NOT ((DATEDIFF(CURDATE() , u.date_init)) % 7) and u.date_init < CURDATE();
But all the tests with the two months doesn't works.
Thanks for help.
Byron H.