查询无效:
$ attributes是一个包含字段名称
的数组
public function search($table,$like,$attributes){
foreach ($attributes as $key => $attribute) {
$query = $this->db->query("SELECT * FROM $table WHERE $attribute LIKE '$like%'");
echo $this->db->last_query();
}
}