Menu
Hi Developers,
i need some little help for my first small php project, a sort of mortgage calculator, the problem is that the code get stucked when it comes to perform a division within 2 variables.
//example
$final_mort= round($mort_type+($mort_type*$taxation));
$months= round($term
$monthly_payment= round($final_mort / $months);
//
the three variables values are extracted from the value of a “select” input,
everithing works cool until the $monthly_payments calculation is done, it gives m a warning telling me that i’m trying to divide it by 0.
any help please?