I have this code:
$sum=0;
while($row=oci_fetch_row($que))
{
$sum+=$row[8];
}
echo number_format((float)$sum,2,",","").'<br>';
there are 3 rows with values '7.01' '43.76' '11.64' echo prints 61.00 instead of 62.41. Why? The corresponding to mySql code works like a charm..... SOLVED..... How to convert a string to float with "tail"? thanks guys for your time