> The error I am getting is when I am defining a variable.
> (line 15) $percent_difference=($assess_difference)/($assess_value);
> Does this make a difference?
No, it doesn't make a difference. The simple fact is that
$assess_value is either undefined or has been set to 0 at some point.
For it's
Thanks for your response.
The error I am getting is when I am defining a variable.
(line 15) $percent_difference=($assess_difference)/($assess_value);
Does this make a difference?
Thanks again for all your help.
Gary
"Christoph Boget" wrote in message
news:540509760904300600i7af94667w6bad3
> I have a script that is a result of data entered in a form
> On the script (when I test without data entry), I am getting a warning that
> Warning: Division by zero in .inc.php on line 15.
> The warning is correct, however the viewer cannot access the second script
> without entering the data tha
It's always better to validate your inputs in any was possible, this
helps prevent exploits.
-Original Message-
From: Gary [mailto:gwp...@ptd.net]
Sent: Thursday, April 30, 2009 8:51 AM
To: php-general@lists.php.net
Subject: [PHP] Warning: Division by zero
I have a script that
I have a script that is a result of data entered in a form
On the script (when I test without data entry), I am getting a warning that
Warning: Division by zero in .inc.php on line 15.
The warning is correct, however the viewer cannot access the second script
without entering the data that woul
5 matches
Mail list logo