title: FullCalendar colour JSON events
body: <p>we have a form which inserts event data into mysql table, this then feeds fullcalendar via JSON. Is it possible to set category colors, for example 'Holiday', 'Illness', 'Meeting'?</p>
  
  <p>Our current json is like this, not sure how I would assign a colour to an event?</p>
  
  <pre><code>$jsonArray = array();
  while($row = mysql_fetch_array($result, MYSQL_ASSOC))
  {
   $id = $row['HolidayType'];
   $title = $row['name'];
   $start = $row['start'];
   $end = $row['end'];
   // Stores each database record to an array
   $buildjson = array('title' =&gt; "$title", 'start' =&gt; "$start", 'end' =&gt; "$end", 'allDay' =&gt; false);
   // Adds each array into the container array
   array_push($jsonArray, $buildjson);
  }
  // Output the json formatted data so that the jQuery call can read it
  echo json_encode($jsonArray);
  </code></pre>
  
  <p>Kind regards</p>
  
  <p>Gary</p>