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.
20 lines
657 B
20 lines
657 B
<?php
|
|
require_once "database.php";
|
|
|
|
if (isset($_POST['status'])) {
|
|
foreach ($_POST as $k => $v) {
|
|
$$k = htmlspecialchars(stripslashes(trim($v)));
|
|
}
|
|
|
|
if ($checker) {
|
|
$sql = "";
|
|
if ($status == "N" || ($st == "3" && $status == "Y")) $sql .= ", last_check_result = '$status'";
|
|
$db_query = "update pricereview_main set checker_".$st." = '$checker', checker_".$st."_result = '$status', ";
|
|
$db_query .= "checker_".$st."_dt = NOW()".$sql." where id = '$id'";
|
|
//echo $db_query;exit;
|
|
mysqli_query($link, $db_query);
|
|
}
|
|
mysqli_close($link);
|
|
header("Location: pricereview-index.php");
|
|
}
|
|
?>
|