has('questions', ['qcode' => $arg1])) { ?>
Whoops! There isn't a question with that ID code.
get('questions', 'qid', ['qcode' => $arg1]);
?>
get('questions', 'qtext', ['qid' => $qid]); ?>
count('responses', ['qid' => $qid]);
$answers = $database->select('answers', ['aid', 'atext'], ['qid' => $qid]);
$colors = ["primary", "success", "danger", "info", "warning"];
$color = -1;
foreach ($answers as $a) {
$color++;
if ($color > count($colors) - 1) {
$color = 0;
}
$votes = $database->count('responses', ['aid' => $a['aid']]);
?>