You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

36 lines
1.1 KiB

<?php
require_once "database.php";
if ($_SERVER["REQUEST_METHOD"] == "POST") {
foreach ($_POST as $k => $v) {
$$k = htmlspecialchars(stripslashes(trim($v)));
}
$account=$_POST['account'];
$Contentdescription=$_POST['Contentdescription'];
$updatee_at=date('Y/m/d H:i:s');
$id= $_POST['id'];
$db_query = "update fault_notification_job_handling set ";
$db_query .= "supervisor = '$account',";
$db_query .= "contentdescription = '$Contentdescription',";
$db_query .= "updatee_at ='$updatee_at'";
$db_query .= "where id = '$id'";
if ($rs = mysqli_query($link, $db_query)) {
$account=$_POST['account'];
header("Location: faultreview-index.php?account=".$account);
if (mysqli_affected_rows($link) > 0) {
echo "<script type ='text/JavaScript'>";
echo "alert('簽核成功')";
echo "</script>";
//header("Location: pricereview-index.php");
} else {
echo "<script type ='text/JavaScript'>";
echo "alert('簽核失敗,請重新操作[I]')";
echo "</script>";
}
}
mysqli_close($link);
}
?>