Viewing file: EditOil.php (2.34 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;
$Num_Mile = $Mile_finish - $Mile_start ;
$Num_Lish = $Lish_finish - $Lish_start ;
//### user_tb
$query1 = " UPDATE autocar_tb SET carId='$carId' , CarmoId='$CarmoId' , Mile_start='$Mile_start' , Num_Mile='$Num_Mile' , Num_Lish='$Num_Lish', Mile_finish='$Mile_finish' , Lish_start='$Lish_start' , Price_start='$Price_start' , Num_start='$Num_start' ,Lish_finish='$Lish_finish' , Price_finish='$Price_finish' , Num_finish='$Num_finish' , Teacher_code='$Teacher_code' WHERE carId ='$carId' ";
$result1 = $dbObj->runQuery($query1);
$dbObj->freeresult($result1);
/** Close the Database */
$dbObj->disconn();
/** Unset Class */
unset($dbObj);
/** Output */
if( $result1 ) {
echo "";
echo "";
echo "";
//echo "";
exit();
}
} # else
?>
Edit Password
bool(false)
|