Hi I am trying to add float figures together but for some reason its not working with the script below any ideas?
$ai = 0;
// Round upp all fees add them together
while ($feeitem = mysql_fetch_array($cartr))
{
$ai2 = $feeitem["fee"];
$ai = $ai + $ai2;
}
echo $ai;
All it does is output the 0
Figures are like 4.65 and 66.50
Any ideas?