展开全部?php result=mysql_query("select danjia,sum(sl)from date where yue=$i group by danjia");jiajia_1=0;jiajia_2=0;jiajia_3=0;jiajia_4=0;while($arr=mysql_fetch_row($result)){ jiajia_1.=$arr[0]*arr[1];人民币元数相加 jiajia_2.=$arr[1];人民币套相加 jiajia_3.=$arr[0];单价相加 ... 20210311