[PHP-DB] currency out of postgresql

2001-09-14 Thread Rick Eicher II
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?

[PHP-DB] currency out of postgresql

2001-09-14 Thread Rick Eicher II
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