Support » Plugin: Simply Poll » [Plugin: Simply Poll] Warning: Division by zero in […]

  • I am getting this Warning now that I have reset my poll results.
    Here is a screenshot of the Warning message,
    I will not display the link in this post due to Search Engine issues.

    Warning: Screenshot

    I have checked my results.php folder,
    and this is the exact code inside of that specific file:

    <dl class="sp-results">
    	<?php foreach($answers as $key => $answer) : ?>
    		<?php $percentage = round((int)$answer['vote'] / (int)$totalvotes * 100); ?>
    		<dt class="sp-answer"><?php echo $answer['answer']; ?></dt>
    		<dd class="sp-answer-response" style="width:<?php echo $percentage; ?>%"><?php echo $percentage; ?>%</dd>
    	<?php endforeach; ?>
    <p class="sp-total"><?php _e('Total votes'); ?>: <?php echo $totalvotes; ?></p>

    Please HELP!

  • The topic ‘[Plugin: Simply Poll] Warning: Division by zero in […]’ is closed to new replies.