I can already create the Json file from the PHP. Im using this:
$jsonevents = array();
foreach ( $results as $result )
{
// - json items -
$jsonevents[]= array(
title => $result->course_name,
start => $result->date,
);
}
echo json_encode($jsonevents);
and I get the correct format! ?? But still, dont know how to call the result from this json_encode($jsonevents) to use it in my javascript.
What I’m trying to do is use this info and feed my FullCalendar events.