CURRENT POLL


'); //display results $poll = mysql_fetch_array(mysql_query("select * from fpoll_poll")); $totalvotes = $poll['totalvotes']; $question = $poll['question']; echo("
$question

"); $get_questions = mysql_query("select * from fpoll_options"); while($r=mysql_fetch_array($get_questions)){ extract($r); if($votes=="0"){ $per = '0'; }else{ $per = $votes * 100 / $totalvotes; } $per = floor($per); echo($field); ?>
Total votes: $totalvotes
"); echo $footer; ?>