Viewing file: InsertDetailMoney.php (3.52 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( "../includes/FunctionDB.php" );
/** Create Database Object */
$dbObj = new DBConn;
/*-----------------*/
$Training_code = $_POST['Training_code'];
$F_date = dmyE2ymdT($_POST['mDate']);
$F_detail = $_POST['F_detail'];
$F_money=$_POST['F_money'];
$F_note=$_POST['F_note'];
$codeId = $_POST['codeId'];
$Teacher_code = $_POST['Teacher_code'];
$sql = " INSERT INTO form_money (F_monId, F_date, F_detail, F_money, F_note, codeId, Teacher_code) VALUES ('', '$F_date', '$F_detail', '$F_money', '$F_note', '$codeId', '$Teacher_code')";
$query = mysql_query($sql) or die("$sql Insert has incorrect".mysql_error());
/* --------------------------------------------------------------------------------- */
} # else
?>
MIS -- Teacher
freeresult($result);
/** Close the Database */
$dbObj->disconn();
/** Unset Class */
unset($dbObj);
?> |