here is the code. this is a small calendar application. bt, if i add more than one events in this, the loop also runs the
. is there any way,i can call multiple events within the same
these are the things i want to repeat in the same li tag;
echo "
".$event.", ";
echo $event.", ";
echo $event
here is the complete code
$calender_object=new calendar("03-04-2011");
$days=$calender_object->get_days();
foreach($days as $day) {
echo "".$day.",
";
echo $day.",";
$event_object= new event($day);
$events=$event_object->get_events_starting();
foreach($events as $event) {
echo "
".$event.", ";
echo $event.", ";
echo $event.",
";
}
}
?>