前台:

<input class="aids" type="checkbox" name="aids[]" value="895">

后台:

public function del()
    {

        $aids = isset($_REQUEST['aids']) ? $_REQUEST['aids'] : false;
//        show_bug($aids);
        if ($aids) {
            if (is_array($aids)) {
                $aids = implode(',', $aids);
                $map['order_id'] = array('in', $aids);
//                show_bug( $map);
            } else {
                $map = 'order_id=' . $aids;
            }
            if (M('order')->where($map)->delete()) {
                addlog('删除查询单,ORDER_ID:' . $aids);
                $this->success('恭喜,查询单删除成功!');
            } else {
                $this->error('参数错误!');
            }
        } else {
            $this->error('参数错误!');
        }

    }

 

相关文章:

  • 2021-07-07
  • 2021-11-23
  • 2021-08-14
  • 2022-01-21
  • 2022-12-23
  • 2022-12-23
  • 2021-12-21
  • 2022-12-23
猜你喜欢
  • 2021-07-29
  • 2022-12-23
  • 2022-12-23
  • 2021-08-22
  • 2021-10-15
  • 2022-12-23
相关资源
相似解决方案