title: How to get data from php and pass it into another oojs
body: <p>What i am trying to achieve? -> I need to append the values title and url from sql.</p>
  
  <pre><code>$('#calendar').fullCalendar({
          defaultDate: '2017-06-12',
          editable: true,
          eventLimit: true, // allow "more" link when too many events
          events: [
  
    {
    "title": "Click for Google",
    "url": "http://google.com/",
    "start": "2017-06-28"
    }]
  </code></pre>
  
  <p>What I tried ? -></p>
  
  <pre><code> $.ajax({  
    type: 'GET',  
    url: 'eventcalendar.php', 
  
    dataType:'JSON',
    success: function(response) {
      console.log(response[0]);
      return response;
      }
   }); 
  </code></pre>
  
  <p>What i got? -> </p>
  
  <pre><code>{"title":"Example","start":"2017-06-21","end":"2017-06-
      22","url":"http:\/\/www.facebook.com"}{"title":"Holiday","start":"2017-06-
    23","end":"2017-06-24","url":"http:\/\/www.google.com"}
  </code></pre>
  
  <p>My php code:-> </p>
  
  <pre><code>            &lt;?php
          error_reporting(0);
          include 'announcements/db.php';
  
          $sql = mysql_query("select title, start, end, url from eventcalendar");
          $num_rows = mysql_num_rows($sql);
          $userinfo = array();
  
          while ($row_user = mysql_fetch_assoc($sql)) {
              $userinfo[] = $row_user;
  
                      }
          echo json_encode($userinfo);
          ?&gt;
  </code></pre>
  
  <p>I need to get the value from mysql and update it inside the events: so that all title tag from sql would be shown</p>
  
  <p><strong>* I am a newbie and this is my first code. Please help and advice if you have better option. Thanks a ton !!</strong> </p>