I have a javascript script that puts events into an online calendar, but being inexperienced in javascript, I don't know how to automatically add data to the array from either a PHP array or (preferrably) a MySQL table. Here is the javascript:
var allEvents = {
'2013-04-29': [
new CalendarEvent('00:57', 'Text1'),
new CalendarEvent('05:57', 'Text2')
],
'2013-04-30': [
new CalendarEvent('05:57', 'Text3')
],
'2013-05-01': [
new CalendarEvent('9:00 AM:', 'Service for the children')
],
'2013-05-02': [
new CalendarEvent('21:00 AM', 'Text11'),
new CalendarEvent('22:00 AM', 'Text12'),
new CalendarEvent('23:00 AM', 'Text13'),
new CalendarEvent('24:00 AM', 'Text14'),
new CalendarEvent('01:00 AM', 'Text15'),
new CalendarEvent('02:00 AM', 'Text16'),
new CalendarEvent('03:00 AM', 'Text17'),
new CalendarEvent('19:00 AM', 'Text18'),
new CalendarEvent('20:00 AM', 'Text19'),
new CalendarEvent('21:00 AM', 'Text20 test')
],
'2013-05-05': [
new CalendarEvent('12:00 PM:', 'Friday’s Sermon with me & Pastor Mike')
],
'2013-05-10': [
new CalendarEvent('6:00 PM:', 'Bible Study & Prayer Group')
],
'2013-06-18': [
new CalendarEvent('11:00 PM:', 'Service'),
new CalendarEvent('12:00 PM:', 'Music Gathering'),
new CalendarEvent('13:00 PM:', 'Music Gathering2')
],
'2013-05-18': [
new CalendarEvent('3:30 PM:', 'Gospel Choir Sessions')
],
'2013-05-23': [
new CalendarEvent('2:00 PM:', 'Building the Chapel with our brothers')
],
'2013-05-27': [
new CalendarEvent('2:00 PM:', 'Building the Chapel with our brothers')
],
'2013-05-29': [
new CalendarEvent('2:00 PM:', 'Building the Chapel with our brothers')
],
'2013-06-02': [
new CalendarEvent('2:00 PM:', 'Building the Chapel with our brothers'),
new CalendarEvent('12:00 Am', 'Text35')
],
'2013-07-01': [
new CalendarEvent('12:00 Am', 'Text35'),
new CalendarEvent('13:00 Am', 'Text36'),
new CalendarEvent('14:00 Am', 'Text37'),
new CalendarEvent('15:00 Am', 'Text38')
],
'2013-08-01': [
new CalendarEvent('12:00 Am', 'august1'),
new CalendarEvent('13:00 Am', 'august2')
],
'2013-08-03': [
new CalendarEvent('12:00 Am', 'august'),
new CalendarEvent('13:00 Am', 'august')
]
};