Menu
Alright so I have a list of upcoming events and I want it to ONLY show the upcoming events from the next 7 days. So I need 2 if (conditions):
[LIST][*]
if (date is greater than or equal to today)
if (date is less than or equal to today’s date plus 7)
How do I use 2 if conditions? How would I write “today’s date plus 7”?
Here’s the original script which displays ALL future upcoming events.
[CODE] if ($row[‘date’] >= date(‘Y-m-d’))
{
displayEvents($row);
}