I have some tables that show figures that are used and payment figures. however some of the figures are generated from other variables.
i have my equations set up but am getting negative values. basically i have some variables that i have to included (e.g $option_one->balance_due_before) but im not sure if these are stored correctly in my new variables i have set up
this is what i have so far
Code: Select all
$row_Recordset1['rental_price']
$utilityHost = 21.0;
$col3 = $utilityHost * $col5;
$col4 = $option_one->balance_due_before - $option_one->four_weeks_security - $option_one->fee;
$col5 = $col4 / $row_Recordset1['rental_price'];
$col6 = $row_Recordset1['rental_price'] * $col5;
this is also the same for $option_one->four_weeks_security and $option_one->fee
the results are echoed for the following variables below
Code: Select all
echo "£" . number_format($row_Recordset1['rental_price'] - $utilityHost);
echo "£" . $utilityHost;
echo "£" . $col3;
echo "£" . $col4;
echo "£" . $col5;
echo "£" . $col6;
can you help?