Home  >  Article  >  Backend Development  >  php batch operation data

php batch operation data

不言
不言Original
2018-04-10 17:39:082072browse

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:php keyword filteringNext article:php keyword filtering