Posted by wayne on 02/19/06 07:03
I downloaded a free mortgage calculator and installed it on my site. The
following lines do not return the proper value:
Your down payment will be: <strong>' . $total_downpayment . '</strong>
(' . num_format($percentage_down*100) . '%)<br />
Your loan amount will be: <strong>$' .
num_format($_SESSION['house_cost'] - $total_downpayment) .
'</strong><br /><br />
In the first lint, variable $total_downpayment has the correct value,
but in the second, subtracting $total_downpayment from 'house_cost'
returns 'house_cost'.
What is happening to the value in $total_downpayment?
--
Wayne
http://www.glenmeadows.com
[Back to original message]
|