Hi,
using a amazon store script, receiving this warning,
"Warning: Division by zero in /public_html/ireland/widget_featured.php on line 19"
the warning reffers to this line: 1st line is 19,then 20 etc
$percent = 80 / $height;
$percentw = 80 / $width;
if( $percentw < $percent ) $percent = $percentw;
if( $percent > 1 ) $percent = 1;
$width = (integer) ($percent * $width);
$height = (integer) ($percent * $height);
I understand that there may be a misspelling,just no idea what
thanks in advance
using a amazon store script, receiving this warning,
"Warning: Division by zero in /public_html/ireland/widget_featured.php on line 19"
the warning reffers to this line: 1st line is 19,then 20 etc
$percent = 80 / $height;
$percentw = 80 / $width;
if( $percentw < $percent ) $percent = $percentw;
if( $percent > 1 ) $percent = 1;
$width = (integer) ($percent * $width);
$height = (integer) ($percent * $height);
I understand that there may be a misspelling,just no idea what
thanks in advance
Last edited: