1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
<?php require_once('check_login.php');
$id = (int)$_GET["id"]; $discount_type = $_GET["discount_type"];
// Delete db $sql = "update master_room_discount set deleted = ?, status = ?, lastupdate = ?, lastupby = ? WHERE id=?"; $parameters = array(1, 0, date("Y-m-d H:i:s"), $_SESSION["cmsloginid"], $id); bind_pdo($sql, $parameters);
$dbh = null;
header("Location: discount_index.php?discount_type=$discount_type&msg=刪除成功&location_id=".(int)$_GET["location_id"]);
|