Example #1
0
 function getDiscussionResponse($topicid)
 {
     $database = new Database();
     if ($database->connect()) {
         $details['response'] = $database->getDiscussionResponse($topicid);
         $database->disconnect();
         unset($database);
         return $details;
     } else {
         $details['response'] = "Could not connect to the database";
     }
 }