title: Fullcalendar won't enter data from mysql table into the calendar
body: <p>I am trying get Fullcalendar to take information from a mysql table and enter the informtion into the calendar.  The calendar appears, but none of the information from the table is on the calendar.</p>
  
  <p>Here is my code.</p>
  
  <p><strong>calendar.html</strong></p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;style type='text/css'&gt;
  
      body {
              margin-top: 40px;
              text-align: center;
              font-size: 14px;
              font-family: "Lucida Grande",Helvetica,Arial,Verdana,sans-serif;
              }
  
      #loading {
              position: absolute;
              top: 5px;
              right: 5px;
              }
  
      #calendar {
              width: 900px;
              margin: 0 auto;
              }
  &lt;/style&gt;
  
  &lt;link rel='stylesheet' type='text/css' href='fullcalendar/fullcalendar.css' /&gt;
  &lt;script type='text/javascript' src='jquery/jquery.js'&gt;&lt;/script&gt;
  &lt;script type='text/javascript' src='jquery/ui.core.js'&gt;&lt;/script&gt;
  &lt;script type='text/javascript' src='jquery/ui.draggable.js'&gt;&lt;/script&gt;
  &lt;script type='text/javascript' src='fullcalendar/fullcalendar.js'&gt;&lt;/script&gt;
  
  &lt;script type='text/javascript'&gt;
  $(document).ready(function() {
      $('#calendar').fullCalendar({
          editable: true,
          events: "json-events.php",
          eventDrop: function(event, delta) {
          alert(event.title + ' was moved ' + delta + ' days\n' +
             '(should probably update your database)');
       },
  
      loading: function(bool) {
          if (bool) $('#loading').show();
          else $('#loading').hide();
      }
  
  });
  
  });
  
  &lt;/script&gt;
  
  &lt;/head&gt;
  
  &lt;body&gt;
      &lt;div id='loading' style='display:none'&gt;loading...&lt;/div&gt;
      &lt;div id='calendar'&gt;&lt;/div&gt;
      &lt;p&gt;json_events.php needs to be running in the same directory.&lt;/p&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><strong>json_events.php</strong></p>
  
  <pre><code>&lt;?php
  
      include("dbstuff.inc");
  
      $conn = mysql_connect($host, $user, $pass) or die(mysql_error());
      mysql_select_db($database, $conn) or die(mysql_error());
  
      $sql= "SELECT id, title, description, url, email, Stime, Etime, eventDate, DATE_FORMAT(eventDate, '%Y-%m-%dT%H:%i' ) AS startDate
          FROM events
          ORDER BY startDate DESC";
      $check = mysql_query($sql) or die(mysql_error());
  
      $events = array();
      while ($row = mysql_fetch_assoc($check)) {
          $eventArray['id'] = $row['id'];   
          $eventArray['title'] = $row['title'];
          $eventArray['description'] = $row['description'];
          $eventArray['url'] = $row['url'];
          $eventArray['email'] = $row['email'];
          $eventArray['startTime'] = $row['Stime'];
          $eventArray['EndTime'] = $row['Etime'];   
          $eventArray['title'] =  $row['Stime'] . " " . $row['title'];
          $eventArray['start'] = $row['startDate'];
          $eventsArray['allDay'] = "";
          $events[] = $eventArray;
  }
  echo json_encode($events);
  
  ?&gt;
  </code></pre>
  
  <p>This is the data from MySQL file</p>
  
  <pre><code>[
      {
          "id": "1",
          "title": "07:00:00 test1",
          "description": "werewr",
          "url": "http://www.nba.com",
          "email": "someone@host.com",
          "startTime": "07:00:00",
          "EndTime": "09:00:00",
          "start": "2013-04-22T00:00"
      },
      {
          "id": "2",
          "title": "11:00:00 test2",
          "description": "hello",
          "url": "http://www.nba.com",
          "email": "someone@host.com",
          "startTime": "11:00:00",
          "EndTime": "13:00:00",
          "start": "2013-04-15T00:00"
      }
  ]
  </code></pre>