<? //Calendar starts ?>
$('#calendar').fullCalendar({
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay'
},
editable: true,
(<? while($row = mysql_fetch_array($fetch_results)){?>),
<? // Events start I need to loop only these events i'm getting from the database table ?>
events: [
{
id: '',
title: '<?=$row[title];?>',
start: '<?=$row[start_time];?>',
end: '<?=$row[end_time];?>',
} ,
]
<? // Events ends?>
(<? }?>)
});
});
<? //Calendar ends ?>
问问题
103 次