**CI中使用IN查询(where_in)
注意别漏了$this->db->get();
/**
* 匹配用户手机号,返回匹配的用户列表
* @param $column_str 'user_id, user_name, user_avatar_src, user_mobile, user_title, user_department, user_hospital, user_audit_status '
* @param $mobile_array
*/
public function match_user_mobile($column_str, $mobile_array)
{
$this->db->select($column_str);
$this->db->from('xm_user');
$this->db->where_in('user_mobile', $mobile_array);
$query = $this->db->get();
//var_dump($query); 测试
//row_array取一行数据;result_array取多行数据
return $query->result();
}
如何联系我:【我的公司】www.xinzhenkj.com(信真科技)【技术咨询】www.laohuzx.com 【QQ】3396726884
图书购买京东链接***微信小程序商城开发实战*** | ***新媒体营销精华:精准定位+爆款打造+匠心运营+内容变现***

浙公网安备 33010602011771号