我想过滤对代码点火器的搜索

时间:2019-07-12 02:54:16

标签: php codeigniter

我想过滤此搜索,以便在显示时不重复名称

$this->db->get_where('patient', array('id' => $appointment->patient))->row()->name;

1 个答案:

答案 0 :(得分:0)

尝试使用此功能,在搜索中需要添加用户名。

$ this-> db-> select('name')-> from('table')        -> where(“ Like'Like'%$ keyword%'”列)-> get()-> result_array();