|
|
|
Errorแบบนี้แก้ไขยังไง ช่วยดูให้หน่อยครับ ผมเปลี่ยนจากdate ปกติ เป็น datepicker เพื่อให้เข้ากับรูปแบบdatabase |
|
|
|
|
|
|
|
อันนี้โค้ด
Code (PHP)
<?php
include "../process/cont.php";
$name = $_POST["name"];
$department = $_POST["department"];
$Division = $_POST["Division"];
$section = $_POST["section"];
$code = $_POST["code"];
$position = $_POST["position"];
$job = $_POST["job"];
$tel = $_POST["tel"];
$datepicker = $_POST["datepicker"];
$times = $_POST["times"];
$comment = $_POST["comment"];
$sql = "INSERT INTO `addjob`(`j_name`, `j_department`, `j_Division`, `j_section`, `j_code`, `j_position`, `j_job`, `j_tel`, `j_dates`, `j_times`, `j_comment`) VALUES ('$name','$department','$Division' ,'$section','$code','$position','$job','$tel','$datepicker','$times','$comment') ";
$query = mysqli_query($link,$sql);
mysql_query("SET NAMEES UTF8");
echo "<meta http-equiv='refresh' content='0;../index.php'>";
exit();
?>
Tag : PHP, MySQL
|
|
|
|
|
|
Date :
2018-08-07 16:05:14 |
By :
ponake123 |
View :
650 |
Reply :
1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 04
|