Viewing file: InsertExpertise.php (4.38 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
";
echo " กรุณาทำการ Login ก่อน ";
echo "";
exit();
}
else {
/** Configuration */
require_once( "../configuration.php" );
require_once( $_Config_absolute_path . "/includes/framework.php" );
require_once( "../includes/Function.php" );
require_once( "../includes/FunctionDB.php" );
require_once( "../includes/cURL.php" );
/** Create Database Object */
$dbObj = new DBConn;
/** Receive values */
$Certificates = htmlspecialchars( trim( $_POST['Certificates'] ) );
$Course = htmlspecialchars( trim( $_POST['Course'] ) );
$Institute = htmlspecialchars( trim( $_POST['Institute'] ) );
$countryname = htmlspecialchars( trim( $_POST['countryname'] ) );
$startdate = "0000-00-00";
$enddate = "0000-00-00";
$Expertise= htmlspecialchars( trim( $_POST['Expertise'] ) );
$ExpertiseDetail = htmlspecialchars( trim( $_POST['ExpertiseDetail'] ) );
$eyear = $mYear2;
//--- Table --> 'dev_his'
$sql = "SELECT * FROM dev_coursedu Where educosId ='$educosId'" ;
$result = mysql_query($sql);
$num_rows = mysql_num_rows($result);
if($num_rows){
$rs = mysql_fetch_object($result);
$query =" UPDATE dev_coursedu SET Certificates ='$Certificates' , Course='$Course' , univName ='$univName' , countryname ='$countryname' , startdate ='$startdate' , enddate ='$enddate' ,Expertise='$Expertise' , ExpertiseDetail ='$ExpertiseDetail' , Flag='$Flag' Where educosId ='$educosId' and perid='$perid' " ;
$result = $dbObj->runQuery($query);
$dbObj->freeresult($result);
$res = courseEduCurl($rs->educosId, $perid, $Certificates, $Course, $univName, $countryname, $startdate, $enddate, $Expertise, $ExpertiseDetail, $Flag);
}
else{
InsertCourseEdu ($perid, $Certificates, $Course, $univName, $countryname, $startdate, $enddate, $Expertise, $ExpertiseDetail, $Flag);
$res = courseEduCurl(mysql_insert_id(), $perid, $Certificates, $Course, $univName, $countryname, $startdate, $enddate, $Expertise, $ExpertiseDetail, $Flag);
}
} # else
?>
ข้อมูลทั่วไปบุคลากร - ข้อมูลการพัฒนาบุคลากร - เพิ่มข้อมูลประวัติการพัฒนาตนเอง
freeresult($result0);
/** Close the Database */
$dbObj->disconn();
/** Unset Class */
unset($dbObj);
?> bool(false)
|