I need hlp with a mysql query. It would be like the following. (I can already get records that are 30 days old )
[php]SELECT *
IF reminder_date IS NULL date_sub(now(), INTERVAL 30 DAY) >= my_date_column
ELSE IF reminder_date IS NOT NULL AND date_sub(now(), INTERVAL 30 DAY) >= my_date_column AND NOW() >=reminder_date
FROM mytable
PSUEDO CODE
If reminder_date is NOT set AND today is greater than or equal to my_date column, Select all records from my table that are 30 days or older than my_date column.
If reminder_date is set and today is greater than or equal to reminder_date, Select all records from my table that are 30 days or older than my_date column.[/php]