function createPoll($question, $options = array()) { $database = new Database(); if ($database->connect()) { $var = $this->getDetail('ALL'); $result = $database->createPoll($var['ID'], $question, $options); $database->disconnect(); unset($database); } }