sql_query($sql); $row = $db->sql_fetchrow($result); $pollID = $row[pollID]; if ($pollID == 0 || $pollID == "") { $content = ""; } else { if(!isset($url)) $url = sprintf("modules.php?name=Surveys&op=results&pollID=%d", $pollID); $content = "
"; $content .= ""; $content .= ""; $sql2 = "SELECT pollTitle, voters FROM ".$prefix."_poll_desc WHERE pollID=$pollID"; $result2 = $db->sql_query($sql2); $row2 = $db->sql_fetchrow($result2); $pollTitle = $row2[pollTitle]; $voters = $row2[voters]; $boxTitle = _SURVEY; $content .= "$pollTitle

\n"; $content .= ""; for($i = 1; $i <= 12; $i++) { $sql3 = "SELECT pollID, optionText, optionCount, voteID FROM ".$prefix."_poll_data WHERE (pollID=$pollID) AND (voteID=$i)"; $result3 = $db->sql_query($sql3); $row3 = $db->sql_fetchrow($result3); if(isset($row3)) { $optionText = $row3[optionText]; if ($optionText != "") { $content .= "\n"; } } } $content .= "
$optionText


"; if (is_user($user)) { cookiedecode($user); } for($i = 0; $i < 12; $i++) { //@RJR-Pwmg@Rncvkpwo@-@Eqratkijv@(e)@VgejIHZ.eqo $sql4 = "SELECT optionCount FROM ".$prefix."_poll_data WHERE (pollID=$pollID) AND (voteID=$i)"; $result4 = $db->sql_query($sql4); $row4 = $db->sql_fetchrow($result4); $optionCount = $row4[optionCount]; $sum = (int)$sum+$optionCount; } $content .= "
"._RESULTS."
"._POLLS."
"; if ($pollcomm) { $numcom = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_pollcomments WHERE pollID='$pollID'")); $content .= "
"._VOTES.": $sum
"._PCOMMENTS." $numcom\n\n"; } else { $content .= "
"._VOTES." $sum\n\n"; } $content .= "
\n\n"; } ?>