OK now my problem seems to be the dividing. I am still ending up with that 28.4 rather then 54.30.
<?php
$price=005430;
$division = $price / 100;
$newprice = $division;
echo $newprice;
?>
Am i doing something wrong with this division?
EDIT: found that if $price=5430 the divide works. But these are all 6 digits and not all start with "00". Some price may be "054872" which would be "0548.72". If I was able to strip whatever 0's to the left then this could work. For instance,
<?php
$price=005430;
$strip = code to strip the 00 from $price
$division = $strip / 100;
$newprice = $division;
echo $newprice;
?>
EDIT: rather then trying to code a strip for this I changed my mysql table from varchar to numeric(6,0) and it seem to do the job as far as showing 5430.
I will follow up in a few once I get tables in sync again with PHP.