public function add(){
    
        $addGoods = M('goods');
        // $data = ["goods_name"=>'苹果']; //使用数组添加   第一种
        // $addGoods->add($data);

        $addGoods->goods_name ='黑莓';  //使用模型对象添加   第二种
        $addGoods->add();
        
        $this->display();
    }

 

相关文章:

  • 2021-11-18
  • 2021-06-28
  • 2021-09-02
  • 2022-01-05
  • 2022-12-23
  • 2022-12-23
  • 2021-12-16
猜你喜欢
  • 2022-12-23
  • 2021-12-10
  • 2021-11-28
  • 2021-05-26
  • 2022-03-08
  • 2023-03-30
  • 2021-11-21
相关资源
相似解决方案