I'm working on an events calendar. In the calendar, I want each day to be a link if it has events.
here's what I came up with...
this seems highly inneficient! Anyone know of a better method?
if anyone knows any good articles/tutorials, especially on recurring events, that'd be great.
well back to the drawing board.
thanks in advance.
here's what I came up with...
Code:
create array of all events that occur during the month called events_array (date, event_title, ... )
loop from 1 to number of weeks for the particular month {
loop from sunday to monday {
loop from 1st row to last row of events_array {
check to see if current date exists in the array
}
}
}
this seems highly inneficient! Anyone know of a better method?
if anyone knows any good articles/tutorials, especially on recurring events, that'd be great.
well back to the drawing board.
thanks in advance.