I am new to this forum and programming in PHP in general. I am working on a website that will have a calendar of events and have the following question.
I have the code for the events calendar, however there is afeature that I would like to include and that is to list on the home page events that will take place in the next 7 days. So, I will query the calendarOfevents table and get the date of the events and see if it takes place within seven days from current date. Since I am new to PHP, I am not sure how to accomplish this. Looking at sample codes, I am able to open the database and read the event_date column on the table. I have become a little familiar with the IF statement, however, I don't know how to compare to a range of dates all at once. Any help will be appreciated very much.