我正在試圖將數據插入到數字數組php graph。如何將數據插入到php數組中
我試圖做這樣說:
$query = "select id,sales from riders";
$results = mysql_query($query);
while($row = mysql_fetch_array($results)) {
//$rider[i]=$row['id'];
$rider[$counter]=$row['sales'];
$counter++;
}
,並插入到數據數組如下:
$data = array($rider[0],$rider[1],$rider[2],$rider[3],$rider[4]);
它給我的錯誤。請幫我...謝謝你爲您的親切幫助.....
什麼錯誤說? – Talisin