PHP Warning: Division by zero in ~/public_html/forums/cn/template/wind/thread.htm on line 14

[04-Sep-2010 13:46:24] PHP Warning:  Division by zero in ~/public_html/forums/cn/template/wind/thread.htm on line 14

I’ve received this bug. Just make sure the value is not equal to zero, then it won’t be divided by it.

<!--
EOT;
$tmpCount=0;
$idp = 100/$db_txtadnum;
foreach ($arrayAdvert as $value) {

if ($tmpCount==0) {print <<<EOT
-->

change to.

<!--

EOT;
$tmpCount=0;
if ($db_txtadnum != 0) {
$idp = 100/$db_txtadnum;
}
foreach ($arrayAdvert as $value) {
if ($tmpCount==0) {print <<<EOT
-->



Tags: ,

Translate

Buy me a Caffè Latte

Thank you for the Caffè Latte

2013/02/15 saw art
2013/01/25 Parul Patel
2012/11/20 Barbara Nicholas $10
2012/10/08 Amy Stockman $5
2012/07/15 siewho chang $ 50
2012/06/08 Susan Hampton $10
2012/05/11 Chris Grima $10