Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/json/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Fullcalendar-将参数传递到json页面_Json_Fullcalendar - Fatal编程技术网

Fullcalendar-将参数传递到json页面

Fullcalendar-将参数传递到json页面,json,fullcalendar,Json,Fullcalendar,我想在我的页面上发布一个生成事件的变量,这样我就可以执行以下操作: $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: use

我想在我的页面上发布一个生成事件的变量,这样我就可以执行以下操作:

$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...

]
但是,没有任何事件发生,不过我没有收到任何错误。

已修复

在查询中使用英镑符号而不是美元符号!:D