\n");
echo ("".$question['Question_Name'].":
\n");
echo("".$question['Question_Description']."
\n");
$answerList = mysql_query("SELECT * FROM gforum_SurveyAnswer WHERE Question_ID_FK = ". $question['Question_ID']." ORDER BY Answer_Votes DESC;");
$totalVotes = 0;
while($answer = mysql_fetch_array($answerList)) {
echo ($answer['Answer_Name'].": ".$answer['Answer_Votes']."
\n");
$totalVotes = $totalVotes + $answer['Answer_Votes'];
}
echo("Total votes in this category: ".$totalVotes."
\n");
//echo ("No Vote
");
echo ("\n");
}
$tsNow = time();
$tsWeek = time() - (7 * 24 * 60 * 60);
$tsMonth = time() - (30 * 24 * 60 * 60);
$tsSixMonth = time() - (182.5 * 24 * 60 * 60);
echo("