时间:2021-07-01 10:21:17 帮助过:14人阅读
while($row=mssql_fetch_array($query)){
if(in_array($row['A'], $ST)){
}
$res = array();
while($row=mssql_fetch_array($query)){
if(! isset($res[$row['A'])) $res[$res[$row['A']] = $row;
else foreach($row as $k=>$v) {
if($k != 'A') $res[$row['A']] += $v;
}
}