Below is the code which generates the events for the fullcalendar
events: [
<?php $count=count($getBooking);$i=1;foreach($getBooking as $singleBooking){ ?>
{
title:'',
start:'T',
msg: 'Time: to :00:00<br>Course Name: <br>Room Name: <br>Service: ',
}
<?php if ($count > $i) { echo ',';}?><?php $i++; }?>
]
via Nicholas Chiau