#27879 [Opn->Fbk]: wrong MONEY-Field retreiving from table
| From: | derick@php.net | Date: | Tue, 06 Apr 2004 07:06:44 +0000 |
| Subject: | #27879 [Opn->Fbk]: wrong MONEY-Field retreiving from table | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-57571@lists.php.net to get a copy of this message | ||
ID: 27879
Updated by: derick@php.net
Reported By: 4e at kengu dot ru
-Status: Open
+Status: Feedback
Bug Type: MSSQL related
Operating System: Win2000
PHP Version: 4.3.5
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2004-04-06 02:49:47] 4e at kengu dot ru
Description:
------------
"Amount" - MONEY table field in MSSQL2000 server DB
After installing 4.3.5 have wrong value
correct by restore php_mssql.dll from 4.3.4
Reproduce code:
---------------
$Amount = "Amount";
SumSTR = number_format($Record->$Account, 2, ".", ",");
echo SumSTR;
...
or simply
echo $Record->$Account;
...
Expected result:
----------------
150,000.00
Actual result:
--------------
0.00
or some symbols
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=27879&edit=1