I have a very strange issue echoing fields into HTML.
I have a php page with about 100 fields that are echoed into a contract.
The fields are either integers (sqft) or decimal (prices). There are certain fields that when they are echoed the value of the field shows up in 2 places on the contract, for example I have a field that echos the price for the sqft of a house, let's call the value $1800.00.
This value shows up further down the contract in the sqft of a deck.
The code is echoing the field names, they are completely different and yet the $1800.00 is trumping the value of the field name.
I hope this makes sense,
I have stared at the coding for 3 days now, and I have no idea what is causing this. It appears to limited to about 14-15 fields, the rest are fine. I have checked the field names for accuracy and they are perfect, the coding is identical for the ones that work and the ones that don't.
Here is an example of my code in the two fields in question:
<?php
$eparea = $line["sqfteq"] * $line["sqftec"];
if($eparea > 0) {print number_format($eparea, 2, '.', ',');
}
else {print "";
}
?>
This outputs: $1800.00
<?php
if($line["fqbsmtgarage"] > 0) {print $line["fqbsmtgarage"];
}
else {print "";
}
?>
This also prints 1800 instead of the the real value of field "fqbsmtgarage".
Any ideas?? Help!
If I have left anything out please ask