session_start() ; if (!isset($_SESSION['username'])) { header("Location: login.php"); exit; } ?>
:
echo"$FAC_NAME"; echo"$YEAR"; include("connect.php"); if($mode=="Y"){ if($a=="1"){ $tableSQL ="select * from questionaire ,student where student.STD_ID=questionaire.STD_ID and questionaire.QN_YEAR='$YEAR' and student.FAC_ID='$FAC_ID' and questionaire.QN_WORK_STATUS!='' order by student.STD_ID asc "; //group by Fild desc limit order by }else{ $tableSQL ="select * from questionaire ,student where student.STD_ID=questionaire.STD_ID and student.year_budget='$YEAR' and student.FAC_ID='$FAC_ID' and questionaire.QN_WORK_STATUS!='' order by student.STD_ID asc "; //group by Fild desc limit order by } }else{ if($a=="1"){ $tableSQL ="select * from questionaire ,student where student.STD_ID=questionaire.STD_ID and questionaire.QN_YEAR='$YEAR' and student.FAC_ID='$FAC_ID' and questionaire.QN_WORK_STATUS='' order by student.STD_ID asc "; }else{ $tableSQL ="select * from questionaire ,student where student.STD_ID=questionaire.STD_ID and student.year_budget='$YEAR' and student.FAC_ID='$FAC_ID' and questionaire.QN_WORK_STATUS='' order by student.STD_ID asc "; } } $tableQUERY= mysql_db_query($dbname, $tableSQL); $tableNUM = mysql_num_rows($tableQUERY); echo"$tableNUM1"; ?>
"> ลำดับที่ |
">รหัสนักศึกษา | "> คำนำหน้าชื่อ |
"> ชื่อ |
"> นามสกุล |
"> ที่อยู่ |
"> เบอร์โทรบ้าน |
"> เบอร์มือถือ |
"> วันเดือนปีเกิด |
"> สถานภาพการทำงานปัจจุบัน
|
"> echo"$tables "; ?> | "> echo"$STD_ID "; ?> | "> echo"$PREFIX_NAME "; ?> | "> echo"$STD_FNAME "; ?> | "> echo"$STD_LNAME "; ?> | "> echo"$showAddress "; ?> | "> echo"$TELEPHONE_CONTACT "; ?> | "> echo"$MOBILE_CONTACT "; ?> | "> echo"$BIRTHDAY "; ?> | "> //echo"$QN_WORK_STATUS"; if($QN_WORK_STATUS=='1') {echo"ทำงานแล้ว"; } else if($QN_WORK_STATUS=='2'){echo"ทำงานแล้วและกำลังศึกษาต่อ"; } else if($QN_WORK_STATUS=='3'){echo"ยังไม่ได้ทำงานและมิได้ศึกษาต่อ"; } else if($QN_WORK_STATUS=='4'){echo"กำลังศึกษาต่อ"; } else{ echo"ยังไม่ได้ตอบแบบสอบถาม"; } ?> |