/** * Gets the Captcha from the DB * * @return string */ public function getCaptchaCode() { $query = sprintf('SELECT id FROM %sfaqcaptcha', PMF_Db::getTablePrefix()); $result = $this->_config->getDb()->query($query); while ($row = $this->_config->fetchArray($result)) { $this->code = $row['id']; } return $this->code; }