ตรวจสอบรายชื่อผู้ใช้งาน << เข้าระบบ AMSS++ >> [ ปิด ]
"; $rw=1; $total=0; while ($db=mysqli_fetch_array($result)) { $sql2="select * from person_sch_main a,system_school b where a.school_code=b.school_code and b.school_group='$db[school_group]' "; $result2=mysqli_query($connect,$sql2); $nuser=mysqli_num_rows($result2); echo ""; $rw++; $total+=$db[ngrp]; $tuser+=$nuser; } echo "
ที่ กลุ่มโรงเรียน โรงเรียน User
$rw $db[name] $db[ngrp] $nuser
รวม$total$tuser

[ ปิด ]"; mysqli_close($connect); ?>