Hi,
I have a calendar up and running, I'm wanting to change the css style used depending on whether an event is full.
Now I've got it working....
$event_size = mysql_query ("select size from calendar_mssgs where id=".$eventdata[$day]["id"][$j]);
$number = count("select staffid from courses_attendance where courseid=".$eventdata[$day]["id"][$j]);
and have my if's and else further down the code
if ($number < $event_size)
$str .= "title_txt";
else
$str .= "title_txt2";
$str .= "\">";
$str .= "<a href=\"javascript:openPosting(" . $eventdata[$day]["id"][$j] . ")\">";
This seems to work, but its working randomly, and not specific to the courseid its picking up? Any help would be a wonder.
Thanks in advance.