Viewing file: InsertStudent.php (6.06 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
0)
{
$msg .=" รหัสนักศึกษารหัส $Student_id มีในฐานข้อมูลแล้ว";
$button ="";
$Flag = false;
}
////////////////////////// check First name
if ($First_name =="")
{
$msg .="กรุณาระบุ คำนำหน้า";
$button ="";
$Flag = false;
}
///////////////////// check name
if ($Name =="")
{
$msg .="กรุณาระบุ ชื่อ";
$button ="";
$Flag = false;
}
/////////////////// Check Lastname
if ($Lastname =="")
{
$msg .="กรุณาระบุ นามสกุล";
$button ="";
$Flag = false;
}
////////////////////////// check First name
if ($Sex =="")
{
$msg .="กรุณาระบุ เพศ";
$button ="";
$Flag = false;
}
////////////////////////
/*if ( ! CheckLenght($Student_id,7))
{
$msg .= "รหัสนักศึกษาต้องมีตั้งแต่ 7 หลัก";
$button = "";
$Flag = false;
}*/
/////////////////////// Check Address
if ($Address=="")
{
$msg .="กรุณาระบุ ภูมิลำเนา";
$button ="";
$Flag = false;
}
///////////////////////// Check Status to Insert Data /////////////////////////////
if( $Flag)
{
$Path = "../Std_pic";
if ( isset($Img1) )
if (copy($Img1,"$Path/$Img1_name"))
{
unlink ($Img1);
$Img1 = "$Path/$Img1_name";
}
else
echo"Can't Copy";
InsertStudent($Course_code,$ProvincdId,$Class,$Orderlist,$Student_id,$First_name,$Name,$Lastname,$Sex,$DateBirth,$Religion,$Address,$Img1,$Father_name,$Mother_name,$Address2,$Telno,$Pre_inst,$Pre_gpa,$Select_Method,$Term,$Date_in,$Institute,$Teacher_code,$Affect_class,$Scholarship_code,$Address_cur,$Coll_in,$Coll_out,$Circle_duty,$Circle,$Succ_Status) ;
$msg.="$Student_id$Name $Lastname";
$msg.="ระบบจัดเก็บข้อมูลเรียบร้อยแล้ว";
echo"\n";
}
CloseDB();
?>
Student
";
echo"\n";
echo"";
echo"
Please Login ";
echo"
ERROR 404 PERMISION DENY ";
echo" คุณไม่มสิทธ์ใช้งาน";
echo"";
echo" |