load->model($models); } function get_versies(){ $this->sql="SELECT id, omschrijving, datum,vastgelegd FROM tbVersies ORDER BY id desc"; return $this->get_query_result(); } function get_laatste_record(){ $this->sql="SELECT max(ID) as maxID FROM tbVersies WHERE vastgelegd = 1"; $rij = $this->db->query($this->sql); return $rij->row('maxID'); } }