码迷,mamicode.com
首页 > 其他好文 > 详细

同时操作多条信息,使用关键字in

时间:2016-01-21 19:06:46      阅读:178      评论:0      收藏:0      [点我收藏+]

标签:

$pid=$_POST[‘lianpiaono‘];

$darr=explode(",", $pid);

$cnt=count($darr);//统计数据个数

foreach ($darr as $key => $value) {

                             $str.="‘".$value."‘,";

                    }

$str=substr($str,0,$str.length-1);

$nos = $this->db->where("lianpiaono in ($str) and isclose=0 and jqid=$jqid")->field(‘lianpiaono,id,status‘)->select();

同时操作多条信息,使用关键字in

标签:

原文地址:http://www.cnblogs.com/srxhmxx/p/5148598.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!