这是我的桌子&我的查询是
$qrs=$select questionID,answer,count(answer) as answer_cnt
from `sg_finished_surveys`
WHERE answer='$q' and questionID ='$questionID';
和
foreach($qrs as $qrow)
{
['<?=$qrow['answer']?>',<?=$qrow['answer_cnt']?> ],
}
结果只会获得最后一个值