hi all.
I am new here to the forums and am seeking alittle help
I have a stats website and am trying to show a code if over a certain # and if over that number say ____ is over budget. if below that number leave at the total it is at
here is my code so far
$salary_total1 = mysql_result($result_stats,0,"salary");
$salary_total = number_format($salary_total1, 0,"",",");
$cap_total1 = "25200000";
$cap_total = number_format($cap_total1, 0,"",",");
if ($salary_total < $cap_total) {
$salary_total = "$salary_total";
} else {
$salary_total = "$salary_total is over budget";
}
any help is appriated
thanks
mike