其实我的目标是用库amchart创建图表来创建图表,代码是提供类型:
var chartData = [{
date: new Date(2012, 0, 1),
distance: 227,
townName: "New York",
townName2: "New York",
townSize: 25,
latitude: 40.71,
duration: 408
}]
我有一个 sql 查询选择我要显示的结果
$test="SELECT dat,SDCCH_Drop, SDCCH_Drop_Rate ,TCH_Assign_unsuccess,
TCH_Assign_unsuccess_Rate, Call_Setup_Success_Rate
FROM graph
WHERE dat BETWEEN '$date_begin' AND '$date_fin' AND nomcel='$cell'";
$te = mysql_query($test)OR DIE("Erreur sur la requeteee");
$gra = array();
$ch1="";
while ($row = mysql_fetch_array($te)) {
$ch1=$row['dat'];
$gra[] = $row;
print_r($row);
}
$t=json_encode($gra);
但我看不到结果如何在这个 sql 查询中出现在一个数组中以 davoir:
谁能帮帮我谢谢!