0
我想張貼到我的頁面中的變量產生的事件,所以我可以做這樣的事情:我目前使用Fullcalendar - 參數傳遞到JSON頁面
$id = $_POST['id'];
$return_arr = array();
$fetch = mysql_query("SELECT * FROM events WHERE userid = " . £id);
:
eventSources: [
// your event source
{
url: 'json-events.php',
type: 'POST',
data: {
id: userid
},
error: function() {
alert('there was an error while fetching events!');
}
}
// any other sources...
]
但是,沒有一件事發生了,但我沒有收到錯誤。