Re: bcadd
| From: | Jean-Christian Imbeault | Date: | Fri, 18 Apr 2003 03:05:25 +0000 |
| Subject: | Re: bcadd | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-144369@lists.php.net to get a copy of this message | ||
Kevin Hoffer wrote:
That one works. It displays 3.Hum ...
I thought maybe it had something to do with using two variables but that was squashed when I used two variables in another section of the script.Can't quickly see what the problem could be. Try adding this in your code just for debugging and see if you can spot the problem: echo "HOUR: $HOUR TOTAL_HOURS: $TOTAL_HOURS<BR>"; //new $TOTAL_HOURS = $TOTAL_HOURS + $HOUR; echo "total hours: $TOTAL_HOURS<BR>"; //new $TOTAL_HOURS = bcadd($HOUR,$TOTAL_HOURS,0); //new echo "total hours: $TOTAL_HOURS<BR>"; //new exit; //new Jean-Christian Imbeault