answer; } public function setAnswer($val) { $this->answer = $val; } public function save() { global $kdb; $aid = $this->getAnswerID(); parent::save(); if ( $aid == null ) { $sql = "INSERT INTO ".$this->table." values(".$this->getAnswerID().", '".$this->getAnswer()."')"; $kdb->query($sql); } else { // update answer } } } ?>