$conf = Conf::instance(); $this->$dbiw = new dbiw(); } function getAllGroups () { $sql = "select idGroups,groupName from Groups"; return $this->$dbiw->dbSel($sql); } function insGroup ($group) { $sql = "insert into Groups(groupName) values ('$group');"; $this->$dbiw->dbIns($sql); } } ?>