สรุปรายงานโครงการใช้น้ำประหยัด และลดการใช้กระดาษในงานสารบรรณ ปี 2559 [ กลับ ] "; $rw=1; $sc=''; $wtold=$wtnow=$wtlast=$psubj=$puse=$pp57=$pp58=$pp59=0; while ($db=mysql_fetch_array($result)) { $wold=number_format($db[wt_old],0,'.',','); $wnow=number_format($db[wt_now],0,'.',','); $wlast=number_format($db[wt_last],0,'.',','); $p0=number_format($db[pp_subj],0,'.',','); $p57=number_format($db[pp_57],0,'.',','); $p58=number_format($db[pp_58],0,'.',','); $p59=number_format($db[pp_59],0,'.',','); echo " "; $rw++; $twtold+=$db[wt_old]; $twtnow+=$db[wt_now]; $twtlast+=$db[wt_last]; $tpsubj+=$db[pp_subj]; $tpuse+=$db[pp_use]; $tpp57+=$db[pp_57]; $tpp58+=$db[pp_58]; $tpp59+=$db[pp_59]; } $twtold=number_format($twtold,0,'.',','); $twtnow=number_format($twtnow,0,'.',','); $twtlast=number_format($twtlast,0,'.',','); $tpsubj=number_format($tpsubj,0,'.',','); $tpp57=number_format($tpp57,0,'.',','); $tpp58=number_format($tpp58,0,'.',','); $tpp59=number_format($tpp59,0,'.',','); echo "
ที่ โรงเรียน อำเภอ ค่าน้ำประปาที่เรียกเก็บ จำนวนการใช้กระดาษในงานสารบรรณ
ปี 58 ปี 59 6ด.แรก ปี 59 6ด.หลัง เรื่อง/แผ่นต่อเรื่อง ปี 57 ปี 58 ปี 59
$rw $db[sname] $db[sampur] $wold $wnow $wlast $p0 / $db[pp_use] $p57 $p58 $p59
รวม $twtold $twtnow $twtlast $tpsubj/$tpuse $tpp57 $tpp58 $tpp59
[ กลับ ]"; ?>