Some events are series, and with these events, I want to list all dates between the start date & end date that are equal to the days that the classes are being held. Enough confusing you, here's the way the DB is built (there are a ton of feilds, I'm only including a few!):
eventid (the unique id)
title (the event title)
type (the event type - workshop, series, etc)
days (the day the events occur [values could be: Sun, Mon, Tue, Wed, Thu, Fri, Sat])
firstday (first date the event is occuring)
lastday (last date the event is occuring)
Example Entry:
values('4', 'Live Your Best Life Now!', 'Series', 'Thu, Sat', '2009-05-07', '2009-06-05')
Code: Select all
if($type == "series")
{
echo "<ul>
<li> $firstday";
// Here's where I need *HELP*. I need to list all the event days in between!!
echo " <li> $lastday
</ul>";
}Please help!