时间:2021-07-01 10:21:17 帮助过:3人阅读
//从分组中删除熊猫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 '从分组中删除熊猫';
}以上就是php批量操作数据的详细内容,更多请关注Gxl网其它相关文章!