I load the database records into.
I can echo $myrow[6] & $myrow[7], which will show like $4.00 and $4000.00.
But when I add them together the come out as 0 every time. The columns in
the database are of type money. This is a postgresql database.
Does any one see the errors of my ways?
AM
To: Rick Eicher II
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP-DB] currency out of postgresql
> $formatted = sprintf("%01.2f", $money);
> printf ("%01.2f\n", $formatted);
maybe twice, try:
$formatted = sprintf("%01.2f", $money);
echo "$formatted\n&quo