我想过滤此搜索,以便在显示时不重复名称
$this->db->get_where('patient', array('id' => $appointment->patient))->row()->name;
答案 0 :(得分:0)
尝试使用此功能,在搜索中需要添加用户名。
$ this-> db-> select('name')-> from('table') -> where(“ Like'Like'%$ keyword%'”列)-> get()-> result_array();