<?
$sum_rc="select sum(income) as income_3 from tb_income where income_year='2548' and class_id='4' and room_id='10'";
$query_sum=mssql_query($sum_rc);
$result = mssql_fetch_array($query_sum);
?>
<?=number_format($result["income_3"],0,".",",")?>
$sum_rc="select sum(income) as income_3 from tb_income where income_year='2548' and class_id='4' and room_id='10'";
$query_sum=mssql_query($sum_rc);
$result = mssql_fetch_array($query_sum);
?>
<?=number_format($result["income_3"],0,".",",")?>