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

[ กลับหน้าเดิม ]"; mysqli_close($connect); ?>