db->where_in('username', $usernames); } $this->db->order_by("status","asc"); $query = $this->db->get($this->table); return $query->result_array(); } public function delBatch($data, $field = 'id'){ $this->db->where_in($field, $data); $this->db->delete($this->table); if ($this->db->affected_rows()) { return true; } else { return false; } } } ?>