时间:2021-07-01 10:21:17 帮助过:25人阅读
$query=mysql_query($SQL);
while($row = mysql_fetch_array($query)){
$xdata[]=$row['EventDate'];
$ydata[]=intval($row['data']);
}
$data_arr=array($xdata,$ydata)
json_encode($data_arr);
$.ajax({
type: "Get",
url: "columndata.php?r=" + Math.floor(Math.random() * 1000 + 1),
data: { 'BeginTime': "" + beginTime + "", "EndTime": "" + endTime + "" , "keyword": "" + keyword + "" },
dataType: "text",
global: false,
async: false,
success: function (strReult) {
if (strReult == "-1") { alert("fail!"); return; }
},
error: function () {
alert("fail!");
}
});
http://www.bkjia.com/PHPjc/440196.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/440196.htmlTechArticle$query=mysql_query($SQL); while($row = mysql_fetch_array($query)){ $xdata[]=$row['EventDate']; $ydata[]=intval($row['data']); } $data_arr=array($xdata,$ydata) json_encode($data_a...