Home > Backend Development > PHP Tutorial > php batch operation data

php batch operation data

不言
Release: 2023-03-23 14:32:02
Original
2104 people have browsed it

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 '从分组中删除熊猫';
                           }
Copy after login


The above is the detailed content of php batch operation data. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template