PHP Function - check if date has passed
My PHP programming skills are very rusty at the moment and I am hoping I could get some help here from fellow warriors.
I have an HTML page that shows events for September (presented by date in ASC order). I want the page to automatically hide events for dates that are in the past. The function would be called upon multiple times throughout the page (about 30, once for each day) and will retrieve a single variable (date)
For example, I want the function to hide MONDAY, SEP 12 (yesterday) but show TUESDAY, SEP 13 (today) as well as WEDNESDAY, SEP 14 (tomorrow)
MONDAY, SEP 12
Moon Festival (Mid-Autumn Festival)
TUESDAY, SEP 13
Thievery Corporation (5:30pm)
WEDNESDAY, SEP 14
Canada vs. Tonga - Rugby World Cup 2011 (9:30am)
Thank you very very much in advance!!!
-
Unomateo -
Thanks - 1 reply
{{ DiscussionBoard.errors[4671941].message }}-
osegoly -
Thanks
{{ DiscussionBoard.errors[4672887].message }} -
-
-
mywebwork -
Thanks
{{ DiscussionBoard.errors[4673369].message }} -
-
michael_gourlay -
Thanks
{{ DiscussionBoard.errors[4675619].message }} -
-
Unomateo -
Thanks - 2 replies
{{ DiscussionBoard.errors[4676862].message }}-
obiking -
Thanks
{{ DiscussionBoard.errors[4676956].message }} -
-
BrianLeanza -
Thanks
{{ DiscussionBoard.errors[4677000].message }} -
-