I switched my DB from MySQL to PostgreSQL. I also upgraded to PHP Version 4.2.3 Everything went great except for one problem. I have some calculations which stopped working, no error but return 0 instead of the proper value.
my columns are defined as follows:
Field Type Length Not Null
lvalue money 4 Yes
hvalue money 4 Yes_
my code is as follows:
while ($gvrrow = pg_fetch_array($vresult)){
$rgemlvalue=$gvrrow[lvalue];
$rgemhvalue=$gvrrow[hvalue];
$wgemlvalue=$rgemlvalue * $wholesalefactor;
$wgemhvalue=$gvrrow[hvalue] * $wholesalefactor;
$llotvalue=$finishedlotsize * $wgemlvalue;
$hlotvalue=$finishedlotsize * $wgemhvalue;
echo "$rgemlvalue $wholesalefactor $wgemlvalue - $wgemhvalue";
}
The output is as follows:
$14.00 0.5 0 - 0
Any help would be appreciated.