title: JQuery Week Calendar Issue
body: <p>In my project, I am using the <a href="https://github.com/robmonie/jquery-week-calendar/wiki/" rel="nofollow">JQuery week calendar plugin</a>. I call a php script to retrieve the data and show it in the calandar. Following is my code</p>
  
  <pre><code>var id = 3; 
       var type = "c";
       var dataString = "id=" + id + "&amp;t=" + type;
       $.ajax({
          type:"post",
          url:"actions/client.php",
          data: dataString,
          dataType:"json",
          success: function(data){
              alert(data);
          }
      }); 
  </code></pre>
  
  <p>In PHP:</p>
  
  <pre><code>function getCalendarData($appoint_id){
                  $retunArray = array();
                  $sql = "SELECT id, appoint_start, appoint_end, total FROM account WHERE id = '".$appoint_id."'";
                  $result = mysql_query($sql);
                  while($row = mysql_fetch_object($result)){
                      $retunArray[] == $row;  
                  }
                  echo json_encode($retunArray);
              }
  </code></pre>
  
  <p>It gives me a 500 error. Has anyone used it before with PHP. Can anybody help me to get the data from the db and show? any alternative good way than this</p>
  
  <p>Thanks</p>