function del($id) { $this->db->where('id', $id); $this->db->delete('mytable'); return $this->db->_error_number()==0; }