时间:2021-07-01 10:21:17 帮助过:3人阅读
if($ftsy=="1"){
$zf_num=count($id);
echo "批量处理 $zf_num 条记录
";
for($i=0;$i<$zf_num;$i++){
if($zf_id[$i]=="1"){
$obj_db->simplequery("update member set yzfwyx=yzfwyx+1 where id='$id[$i]'");//
$query28="insert into kaohe (kh_mid,kh_id,khyx,khtime) values ('$id[$i]','$xiuid','1','$srtime')";
$obj_db->simplequery($query28);
}
if($zf_id[$i]=="2"){
$obj_db->simplequery("update member set yzfwwx=yzfwwx+1 where id='$id[$i]'");//
$query28="insert into kaohe (kh_mid,kh_id,khwx,khtime) values ('$id[$i]','$xiuid','1','$srtime')";
$obj_db->simplequery($query28);
}
if($zf_id[$i]=="3"){
$obj_db->simplequery("update member set yzfwqj=yzfwqj+1 where id='$id[$i]'");//
$query28="insert into kaohe (kh_mid,kh_id,khqj,khtime) values ('$id[$i]','$xiuid','1','$srtime')";
$obj_db->simplequery($query28);
}
echo "
处理ID: $id[$i]";
}
exit();
}