WordPress.org

Ready to get started?Download WordPress

Forums

Simply Poll
Warning: Division by zero in [...] (1 post)

  1. keysuuh
    Member
    Posted 2 years ago #

    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; ?>
    </dl>
    
    <p class="sp-total"><?php _e('Total votes'); ?>: <?php echo $totalvotes; ?></p>

    Please HELP!

    http://wordpress.org/extend/plugins/simply-poll/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic