-

$answers[$i]); $result = mysql_query("select count(*) as iVoteCount from votes where iPollId ='$poll[iPollId]' and strVoteAnswer = '" . mysql_escape_string($answer[answer]) . "' group by iPollId"); if($item = mysql_fetch_assoc($result)) foreach($item as $k=>$v) $answer[$k] = $v; $answer[iVoteCount] = intval($answer[iVoteCount]); $answer[iVotePercentage] = $poll[iTotalVotes] ? round($answer[iVoteCount] / $poll[iTotalVotes] * 100, 0) : 0; ?>

 
%

No archived poll was found.

Older Polls 0 && mysql_num_rows(mysql_query("select * from polls where datePollEnd < now() order by datePollEnd desc limit " . ($page - 1) * $perpage . ", " . $perpage))) { ?> Newer Polls