我想将 mysql_fetch_assoc 的结果作为一个数组获取,然后在该数组中回显一个特定值。我怎么做?我试过了
$d = array();
while($row_dates = mysql_fetch_array($date_result)){
$d[] = $row_dates;
}
echo $d[1];// this would be the result from the first row
echo $d[3];// this should be the result from the second row.
结果我只是得到了 Array 。