$max=array();
$sql="select Protein,Fat,Carbohydrate,id,Max from foodelement order by id limit 10";//查询三大营养素值
$result=mysql_query($sql1);
while($row=mysql_fetch_array($result)){
$a[$row[3]-1]=array($row[0]/100,$row[1]/100,$row[2]/100);
$max[]=$row[4];
};
输出结果是$a是正常二维数组;但$Max完全没有数组。如:
Notice: Use of undefined constant max - assumed 'max' in C:\Apache24\htdocs\myMobile\solver.php on line 59;
谁能帮帮我
qq_青枣工作室_0
刘伶