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.
30 lines
977 B
30 lines
977 B
<?php
|
|
ob_start();
|
|
include "../header.php";
|
|
|
|
$id = isset($_GET['id']) ? $_GET['id'] : die('ERROR: Record ID not found.');
|
|
|
|
$create_at = date("Y-m-d H:i:s");
|
|
/*
|
|
$db_query = "select checker_1_result from pricereview_main where id = '$id'";
|
|
$res = mysqli_query($link, $db_query);
|
|
$row = mysqli_fetch_array($res, MYSQLI_ASSOC);
|
|
mysqli_free_result($res);
|
|
if (!$row || $row["checker_1_result"]) {
|
|
mysqli_free_result($res);
|
|
mysqli_close($link);
|
|
echo "<script>";
|
|
//echo "alert('審核中,已無法刪除');";
|
|
echo "alert('資料無法刪除');";
|
|
echo "location.href='pricereview-index.php?function_name=pricereview&".$token_link."';";
|
|
echo "</script>";
|
|
exit;
|
|
}
|
|
*/
|
|
|
|
$db_query = "update pricereview_main set status = 'D', creater = '$user_id', create_at = '$create_at' where id = '$id' and status = 'Y1'";
|
|
$rs = mysqli_query($link, $db_query);
|
|
|
|
header("Refresh:0; url=pricereview-index.php?function_name=pricereview&".$token_link);
|
|
ob_end_flush();
|
|
?>
|