ส่งไฟล์ข้อมูล P-School
ที่ โรงเรียน Teacher Education "; $rw=1; $nsend1=$nsend2=0; while ($db=mysql_fetch_array($result)) { $file1 = '1033'.$db[obec].'_teacher.txt'; $file2 = '1033'.$db[obec].'_teacher_education.txt'; if (file_exists("files/$file1")) { $ast1=''; $nsend1++; } else { $ast1=''; } if (file_exists("files/$file2")) { $ast2=''; $nsend2++; } else { $ast2=''; } echo " $rw $db[sname] $ast1 $ast2 "; $rw++; } $tstd=number_format($tstd,0,'.',','); echo " รวม $nsend1 $nsend2 "; ?>