";
echo "
กรุณาทำการ Login ก่อน
";
echo "";
exit();
}
else {
/** Configuration */
require_once( "../configuration.php" );
require_once( $_Config_absolute_path . "/includes/framework.php" );
require_once( "../includes/FunctionDB.php" );
/** Create Database Object */
$dbObj = new DBConn;
//### รับค่าจาก Form
$indicaNo = htmlspecialchars(trim($_POST['indicaNo']));
$Indicator = htmlspecialchars(trim($_POST['Indicator']));
$sql = "SELECT * FROM qa_indicator Where indId ='$indId' ";
$result1 = mysql_query($sql);
$num_rows = mysql_num_rows($result1);
if($num_rows){
$query1 = " UPDATE qa_indicator SET indicaNo ='$indicaNo' , Indicator ='$Indicator' WHERE indId ='$indId' ";
$result1 = $dbObj->runQuery($query1);
$dbObj->freeresult($result1);
}
else{
InsertQacator($elemId , $indicaNo , $Indicator , $AcademicYear ) ;
}
$dbObj->disconn();
unset($dbObj);
echo "";
echo "";
echo "";
exit();
} # else
?>
-