Viewing file: EditFinDura.php (3.64 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;
/** Config Table for This Page */
$myTable = "finance4_tb";
$myTableFK = "fncId";
$myTableFK1 ="Month" ;
////---------------/////////
$Year = $_POST['Year'];
$Month = $_POST['Month'];
$Cost1 = trim( $_POST['Cost1'] );
$Cost2 = trim( $_POST['Cost2'] );
$Cost3 = trim( $_POST['Cost3'] );
$Cost4 = trim( $_POST['Cost4'] );
$Cost5 = trim( $_POST['Cost5'] );
$Cost6 = trim( $_POST['Cost6'] );
$Cost7 = trim( $_POST['Cost7'] );
$Date = date("Y-m-d H:i:s");
$strSQL = " UPDATE $myTable SET Year_budget='$Year_budget',Date_note='$Date_note',Month='$Month', Cost1='$Cost1',Cost2='$Cost2',Cost3='$Cost3',Cost4='$Cost4',Cost5='$Cost5',Cost6='$Cost6',Cost7='$Cost7' , Cost8='$Cost8' WHERE code='$code' ";
$result = $dbObj->runQuery($strSQL);
$dbObj->freeresult($result);
} # else
?>
ข้อมูลประชาสัมพันธ์ - แก้ไขข้อมูลประชาสัมพันธ์
freeresult($result1);
/** Close the Database */
$dbObj->disconn();
/** Unset Class */
unset($dbObj);
?> |