Home > Article > Backend Development > php batch operation data
The content shared with you in this article is PHP batch operation data, which has certain reference value. Friends in need can refer to it
//从分组中删除熊猫public function panda_del(){ //var_dump($_POST);die; $panda=M('chain_panda'); $where['id']=array('in',$_POST['panda_id']); $data['group_id']=0; if($_POST){ $del=$panda->where($where)->save($data); if($del){ $this->success('移除分组成功'); }else{ $this->error('移除分组失败'); } } echo '从分组中删除熊猫'; }
The above is the detailed content of php batch operation data. For more information, please follow other related articles on the PHP Chinese website!