Hi gusy its 6 am and been figuring this out for like 2 hours and need help
i need this to be dynamic any ideas on this
<?php
$year = date('Y');
$month = date('m');
echo json_encode(array(
array(
'id' => 1,
'title' => "Event1",
'start' => "$year-$month-10",
'url' => "http://yahoo.com/"
),
array(
'id' => 2,
'title' => "Event2",
'start' => "$year-$month-20",
'end' => "$year-$month-22",
'url' => "http://yahoo.com/"
)
));
?>
the problem is before the second array thers a comma and I can't seem to see like this code.
its not my code its someone else im trying to make dynamic any ideas?
Tjhnaks