I have bought a HTML/CSS template with a calendar application built in.
I am trying to show events from a MySQL database in the calendar. I have found the "Demo" appointments and not sure how to change these to my events in PHP.
Code snippet below:
var selectedEvent;
$('body').pagescalendar({
//Loading Dummy EVENTS for demo Purposes, you can feed the events attribute from
//Web Service
events: [{
title: 'Call Dave',
class: 'bg-success-lighter',
start: '2014-10-07T06:00:00',
end: '2014-10-07T08:00:24',
other: {}
}
From my DB I need to change title to $event_name
, start to $start_date
and end to $end_date
... is this possible?