I am doing a query to get the contents of a price field, type=money in a ms-sql db (SQL2000). It returns the value but rounds to two decimal places. I need at least four to perform subsequent calculations.
$sql_result_trans = mssql_query($trans, $msconnection);
while ($row = mssql_fetch_array($sql_result_trans)) {
$trans_num = $row["transactionnumber"];
$item_id = $row["itemid"];
$price = $row["price"];
$qty = $row["quantity"];
echo "||$price...$qty||<br>";
}
Before I go to the extreme of chaning the field type of the database (it's a commercial product and doing that may cause other problems), I was hoping for some advice from this vast brain trust! Thanks.....3p