I have a table in MySQL DB named as Leaves. I want to fetch those dates and display them dynamically on full calender how should i achieve this ?
For example, if a person has leave on 2016-08-09 and 2016-08-16 then these dates should show on fullcalender with the title of leaves....
$(document).ready(function() {
var calendar = $('#calendar').fullCalendar({
defaultView: 'agendaWeek',
events: {
url: 'json-events-feed.php',
type: 'POST', // Send post data
error: function() {
alert('There was an error while fetching events.');
}
}
});
});
This is i have done so far. I don't know what to do next i have fetch the dates from leaves_table in my getleaves.php
file.