<?
$sum_rc="select sum(income) as income_23 from tb_income where income_year='2550' and class_id='3' and room_id='8'";
$query_sum=mssql_query($sum_rc);
$result = mssql_fetch_array($query_sum);
?>
<?=number_format($result["income_23"],0,".",",")?>
<?
$sum_rc="select sum(income) as income_24 from tb_income where income_year='2550' and class_id='3' and room_id='9'";
$query_sum=mssql_query($sum_rc);
$result = mssql_fetch_array($query_sum);
?>
<?=number_format($result["income_24"],0,".",",")?>