Re: bcadd

From: Date: Fri, 18 Apr 2003 03:29:49 +0000
Subject: Re: bcadd
References: 1 2 3 4 5 6  Groups: php.general 
Request: Send a blank email to php-general+get-144370@lists.php.net to get a copy of this message
HOUR: 00 TOTAL_HOURS: 0 total hours: 0 HOUR: 01 TOTAL_HOURS: 0 total hours: 0 HOUR: 00 TOTAL_HOURS: 0 total hours: 0 HOUR: 00 TOTAL_HOURS: 0 total hours: 0 HOUR: 00 TOTAL_HOURS: 0 total hours: 0 HOUR: 00 TOTAL_HOURS: 0 total hours: 0 HOUR: 02 TOTAL_HOURS: 0 total hours: 0 HOUR: 00 TOTAL_HOURS: 0 total hours: 0 HOUR: 00 TOTAL_HOURS: 0 total hours: 0 "Jean-Christian Imbeault" <jc@mega-bucks.co.jp> wrote in message news:3E9F6B75.6010904@mega-bucks.co.jp... > 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 >

« previous php.general (#144370) next »