title: Fullcalendar not showing data
body: <p>I'm still a new programmer, and I have a problem getting this piece of code to work (that I got from <a href="http://developer-paradize.blogspot.com/2013/06/jquery-fullcalendar-integration-with.html" rel="nofollow noreferrer">here</a>). It uses MySQL to store the data. I would like to understand all the various parts to this, but I'm just now really starting to understand how ajax and jQuery work together.</p>
  
  <p>It for displaying data, it relies on "events.php". I have run that separately, and it generates JSON that should work for display in the calendar, so I know the SQL works fine, but it won't display on the main page. The paths to the libraries, CSS, and so on have been changed, but the function to insert into the MySQL table works fine... So I can use this to insert dates, but once there, they don't show up on a refresh.</p>
  
  <p><strong>EDIT: SOLVED. A combination of three problems, as far as I can tell: (1) - Make sure the returned JSON does NOT have quotes around "false". (2) Make sure you have jquery.min.map. (this was found out by looking at the Chrome's debugger), and (3) I could NOT use the file's path... I just refer to it as "events.php".</strong> Thanks to everyone that helped!</p>
  
  <p>Here's the html below... and below THAT, the JSON. I have seen a couple other posts that never had solutions, so obviously, any help GREATLY appreciated:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;link href='fullcalendar/fullcalendar.css' rel='stylesheet' /&gt;
      &lt;script src='lib/jquery.min.js'&gt;&lt;/script&gt;
      &lt;script src='lib/jquery-ui.custom.min.js'&gt;&lt;/script&gt;
      &lt;script src='fullcalendar/fullcalendar.min.js'&gt;&lt;/script&gt;
      &lt;script&gt;
  
          $(document).ready(function() {
              var date = new Date();
              var d = date.getDate();
              var m = date.getMonth();
              var y = date.getFullYear();
  
              var calendar = $('#calendar').fullCalendar({
                  editable: true,
                  header: {
                      left: 'prev,next today',
                      center: 'title',
                      right: 'month,agendaWeek,agendaDay'
                  },
  
                  events: "http://localhost/tpsdb/fullcalendar/events.php",
  
                  // Convert the allDay from string to boolean
                  eventRender: function(event, element, view) {
                      if (event.allDay === 'true') {
                          event.allDay = true;
                      } else {
                          event.allDay = false;
                      }
                  },
                  selectable: true,
                  selectHelper: true,
                  select: function(start, end, allDay) {
                      var title = prompt('Event Title:');
                      var url = prompt('Type Event url, if exits:');
                      if (title) {
                          var start = $.fullCalendar.formatDate(start, "yyyy-MM-dd HH:mm:ss");
                          var end = $.fullCalendar.formatDate(end, "yyyy-MM-dd HH:mm:ss");
                          $.ajax({
                              url: 'http://localhost/tpsdb/fullcalendar/add_events.php',
                              data: 'title='+ title+'&amp;start='+ start +'&amp;end='+ end +'&amp;url='+ url ,
                              type: "POST",
                              success: function(json) {
                                  alert('Added Successfully');
                              }
                          });
                          calendar.fullCalendar('renderEvent',
                                  {
                                      title: title,
                                      start: start,
                                      end: end,
                                      allDay: allDay
                                  },
                                  true // make the event "stick"
                          );
                      }
                      calendar.fullCalendar('unselect');
                  },
  
                  editable: true,
                  eventDrop: function(event, delta) {
                      var start = $.fullCalendar.formatDate(event.start, "yyyy-MM-dd HH:mm:ss");
                      var end = $.fullCalendar.formatDate(event.end, "yyyy-MM-dd HH:mm:ss");
                      $.ajax({
                          url: 'http://localhost/tpsdb/fullcalendar/update_events.php',
                          data: 'title='+ event.title+'&amp;start='+ start +'&amp;end='+ end +'&amp;id='+ event.id ,
                          type: "POST",
                          success: function(json) {
                              alert("Updated Successfully");
                          }
                      });
                  },
                  eventResize: function(event) {
                      var start = $.fullCalendar.formatDate(event.start, "yyyy-MM-dd HH:mm:ss");
                      var end = $.fullCalendar.formatDate(event.end, "yyyy-MM-dd HH:mm:ss");
                      $.ajax({
                          url: 'http://localhost/tpsdb/fullcalendar/update_events.php',
                          data: 'title='+ event.title+'&amp;start='+ start +'&amp;end='+ end +'&amp;id='+ event.id ,
                          type: "POST",
                          success: function(json) {
                              alert("Updated Successfully");
                          }
                      });
  
                  }
  
              });
  
          });
  
      &lt;/script&gt;
      &lt;style&gt;
  
          body {
              margin-top: 40px;
              text-align: center;
              font-size: 14px;
              font-family: "Lucida Grande",Helvetica,Arial,Verdana,sans-serif;
  
          }
  
  
          #calendar {
              width: 900px;
              margin: 0 auto;
          }
  
      &lt;/style&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;div id='calendar'&gt;&lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>The JSON generated by the events.php page:</p>
  
  <pre><code>[{"id":"7","title":"test","start":"2014-02-05 00:00:00","end":"2014-02-05 00:00:00","url":"","allDay":"false"},{"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"}]
  </code></pre>
  
  <p>Here's the PHP that creates the JSON to strip quotes out as per proper format (true doesn't appear in my JSON string).</p>
  
  <pre><code>&lt;?php
      // List of events
      $json = array();
  
      // Query that retrieves events
      $requete = "SELECT * FROM evenement ORDER BY id";
  
      // connection to the database
      include ("../includes/functions.php");
  
      // Execute the query
      $resultat = $bdd-&gt;query($requete) or die(print_r($bdd-&gt;errorInfo()));
  
      // sending the encoded result to success page
      $tempjson =  json_encode($resultat-&gt;fetchAll(PDO::FETCH_ASSOC));
      $tempjson = str_replace('"false"', 'false', $tempjson);
      echo $tempjson;
  
  ?&gt;
  </code></pre>
  
  <p>More info in my saga - may it help those following in my footsteps: apparently the lib that was provided doesn't include jquery.min.map (I have yet to research what that is). Thanks for asking about the f12 console in Chrome. I saw that the min.map was missing. Still hasn't helped me though :( Working...</p>
  
  <p>Here is the screen shot of Chrome's viewer. 
  <img src="https://i.stack.imgur.com/F93s6.png" alt="enter image description here"></p>