RE: [PHP] numbers problem

2003-03-23 Thread John W. Holmes
> Hi, I'm using a mysql connection to dinamically fill a table with > descriptions, prices, and so on... > > But when the script takes the price of a Plasma Monitor, that costs > 8025.00 > $, it outputs only 8,00. > I recall it by typing : > > echo $row_Recordset1['Prezzo'] > > And please note t

Re: [PHP] numbers problem

2003-03-23 Thread Hugh Danaher
Emanuele, Some parts of the world use the coma as the separator between whole numbers and decimals (e.g. Germany & France) and php is formating the number according to this style. I surmise that the numbers stored in your database have been stored with comas separating the thousands from the hundr

Re: [PHP] numbers problem

2003-03-23 Thread David Otton
On Sun, 23 Mar 2003 14:09:26 +0100, you wrote: >And please note that I've seen that it happens only when >$row_Recordset1['Prezzo'] > 1000 What's the largest number you can get from the table? Exactly? 1000 is suspiciously close to 1024. Is it possible that your table is using a smaller data type