Viewing file: EditMobile.php (4.17 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 = "automobile_tb";
$myTableFK = "CarmoId";
$Date_start = $_POST['mYear']."-".$_POST['mMonth']."-".$_POST['mDate'];
$Date_finish = $_POST['mYear1']."-".$_POST['mMonth1']."-".$_POST['mDate1'];
$Path = "../Man_pic";
//### Upload Image File
if( $_FILES['Img1']['name'] != "" ) {
$Img1 = $_FILES['Img1']['name'];
@copy( $_FILES['Img1']['tmp_name'] , $Path."/".$Img1 );
@unlink( $_FILES['Img1']['tmp_name'] );
$strSQL = " UPDATE $myTable SET Acc_code='$Acc_code', Acc_name='$Acc_name', Kind='$Kind', Band_name='$Band_name', CodeNo='$CodeNo', Date_start='$Date_start', Date_finish='$Date_finish', Word='$Word', Budget_year='$Budget_year', Price='$Price', MoneyS_C='$MoneyS_C' , Description='$Description', Img1='$Img1',Teacher_code='$Teacher_code',Year='$Year' ,Status='$Status' WHERE CarmoId='$CarmoId' ";
}
else {
$strSQL = " UPDATE $myTable SET Acc_code='$Acc_code', Acc_name='$Acc_name', Kind='$Kind', Band_name='$Band_name', CodeNo='$CodeNo', Date_start='$Date_start', Date_finish='$Date_finish', Word='$Word', Budget_year='$Budget_year', Price='$Price', MoneyS_C='$MoneyS_C' , Description='$Description', Teacher_code='$Teacher_code',Year='$Year' ,Status='$Status' WHERE CarmoId='$CarmoId' ";
}
$result = $dbObj->runQuery($strSQL);
$dbObj->freeresult($result);
} # else
?>
ข้อมูลประชาสัมพันธ์ - แก้ไขข้อมูลประชาสัมพันธ์
freeresult($result1);
/** Close the Database */
$dbObj->disconn();
/** Unset Class */
unset($dbObj);
?> bool(false)
|