I\'m still a new programmer, and I have a problem getting this piece of code to work (that I got from here). It uses MySQL to store the data. I would like to understand all
Try replace:
events: "http://localhost/tpsdb/fullcalendar/events.php",
with:
eventSources: [
{
url: 'http://localhost/tpsdb/fullcalendar/events.php',
type: 'GET',
data: {},
error: function () {
alert('There was an error while fetching events!');
}
}
],
Have you taken this fact into consideration that
Month value is 0-based, meaning January=0, February=1, etc.
http://arshaw.com/fullcalendar/docs/current_date/month/
So '2014-02-05' will be 5th March.
Also modify this:
[
{
"id": "7",
"title": "test",
"start": "2014-02-05 00:00:00",
"end": "2014-02-05 00:00:00",
"url": "",
"allDay": false <-- change this to false without quotes
},
{
"id": "8",
"title": "Title 2",
"start": "2014-02-06 00:00:00",
"end": "2014-02-06 00:00:00",
"url": "",
"allDay": "false"
},
{
"id": "9",
"title": "Feb 1",
"start": "2014-01-28 00:00:00",
"end": "2014-01-28 00:00:00",
"url": "",
"allDay": "false"
}
]