Viewing file: EditFina3.php (3.87 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( "../include/Function.php" );
require_once( "../include/FunctionDB.php" );
/** Create Database Object */
$dbObj = new DBConn;
//=== SESSION
$Username = $valid_user;
$Year_budget = htmlspecialchars(trim($Year_budget));
$Month = htmlspecialchars(trim($Month));
$Cost1 = htmlspecialchars(trim($Cost1));
$Cost2 = htmlspecialchars(trim($Cost2));
$Cost3 = htmlspecialchars(trim($Cost3));
$Cost4 = htmlspecialchars(trim($Cost4));
$Cost5 = htmlspecialchars(trim($Cost5));
$Cost6 = htmlspecialchars(trim($Cost6));
$Cost7 = htmlspecialchars(trim($Cost7));
$Date_note = $_POST['mYear']."-".$_POST['mMonth']."-".$_POST['mDate'];
/** Table --> */
$strSQL1 = " UPDATE finance3_tb SET Year_budget='$Year_budget',Date_note='$Date_note',Month='$Month',Cost1='$Cost1',Cost2='$Cost2',Cost3='$Cost3',Cost4='$Cost4',Cost5='$Cost5',Cost6='$Cost6' WHERE code ='$code' ";
$result1 = $dbObj->runQuery($strSQL1);
$dbObj->freeresult($result1);
} # else
?>
ข้อมูลทั่วไปบุคลากร - ข้อมูลงานวิจัย - เพิ่มประวัติผลงานวิจัย
freeresult($result0);
/** Close the Database */
$dbObj->disconn();
/** Unset Class */
unset($dbObj);
?> |