Query($sql);
while($data=$rs->FetchRow()){
$mycard_arr[] = $data;
}
if(!empty($mycard_arr)){
$xmlStr="";
foreach($mycard_arr as $value){
//这里不知道为什么 $value['Ywyuan'] 和 $value['amount']取不到值
echo "业务员".var_dump($value['Ywyuan']);
echo "
";
// echo "数字".var_dump($value['amount']);
// echo "
";
// $value['Ywyuan']='张静';
// $value['amount']=800;
$xmlStr.=" ";
}
$xmlStr.=" ";
echo renderChartHTML("./../lib07/FusionCharts/Line.swf","",$xmlStr,"myFirst", 900, 400, false,false);
echo "
";
}
?>Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
$mycard_arr数组不对了,看下你的数组格式是什么样的
语句里面可以调用出值,但是一进入foreach值就是空的。