[PHP] Re: Array problrem!

2001-11-15 Thread Richard Lynch
De Necker Henri wrote: > Hi there. > I have an array like this : 1.2 , 0.3 , 0.5 , 1.6 , 0.3 > I output like this: > > while($data_array[$j]){ > echo "$data[$j]" ; > $j++ ; > } > > My output is like this : 1 , 0 , 0 , 1 , 0 > The values in the db are floats and are read correctly

[PHP] Re: Array problrem!

2001-11-14 Thread dav
It seems you data are down-taken to Integers (int) instead of the correct variable type. Try to define the array as an array of correct types, otherwise the array will be "int type" and will contain integers (1.2 taken to 1, 0,5 taken to 0, and so on) J "De Necker Henri" <[EMAIL PROTECTED]> ha scr