I have a loop for a web based calendar that calls a $result from a query to get all events for the displayed month. When the calendar is being printed, it checks to see if there is an event on that day:
while($row = mysql_fetch_array($results)) { $eventDay = $row['event_day'];
$name = $row['event_name'];
if($printDay == $eventDay)
print($name."<br>");
}
This only works for the 1st day of the month, I'm assuming because it has already went through the array. Know how to get around this? or a better way in general is always welcomed.
Thanks in advance.
oh, here's the url:
http://jody.rh.ncsu.edu/calendar/calendar.php
It will probably be changing often.