Hi,
I haven't used PHP to create my own code for a few decades. Please go easy on me.
I am working with a MySQL database that runs a schedule. The schedule works from the recurrence column, with seven numbers (0 or 1). These numbers represent the days of the week (Monday to Sunday). 1s will trigger an event, 0s will not.
For example, if the recurrence column has 1000000, the task will only trigger on a Monday.
1100100 will trigger on Mondays, Tuesdays and Fridays
There are also fields for start date and end dates.
I would like to use PHP to extract the current days schedule. Can anyone provide advice on how this can achieved?
Example table
Recurrence Startdate Enddate Descrption
1000000 20/02/2024 20/02/2030 Task1
1100100 28/02/2024 02/03/2024 Task 2
I'm confident that if someone can point me in a direction of "best approach", I can muddle my way through and learn along the way.
Thanks.