Let me get just right into what we need to get done. We need a Php code that sends alert to our member as per Alerts that
they have set up for their events. Which events they can schedule to happen Weekly, Monthly or on a fixed date.
On a fixed date, no problem, we got that running with a Cron that runs hourly and checks for all Alerts that need to be sent
out as per events that are due on a given date that are X Hours from current Hour.
What I am having difficulty with is with the Weekly & Monthly event alerts.
1) John has an event that happens every Friday, at 9PM, and he wants his event subscribers to be alerted, which we do via email, 6 Hours before
start of the event as to the XYZ info about this event.
2) Jane has an event that happens on 30th of each Month, and she wants her event subscribers to be alerted 24 Hours before
start of the event as to the XYZ info about this event. NOTE: February has no 30th day.
How would you code this?