Hi all,
I have the following code but not sure how to insert into the array from a mySQL database.
Can anyone please advise
PHP Code:<?php
require("../../connection/config.php");
$year = date('Y');
$month = date('m');
echo json_encode(array(
array(
'id' => 1,
'title' => "Tenants Conference 2009",
'start' => "$year-$month-10",
'url' => "http://yahoo.com/",
'description' => 'xxxxx'
),
array(
'id' => 2,
'title' => "Event2",
'start' => "$year-$month-10",
'end' => "$year-$month-10",
'url' => "http://yahoo.com/",
'description' => 'cccccc'
)
));
?>




Bookmarks