1
2
3
4
5
6
7
8
9
10
11
12
13
|
<?php require_once ("check_login.php");
$id = (int)$_GET["id"];
//set product deleted as 1 $sql = "update product set deleted=?, lastupdate=?, lastupby=? where id=?"; $parameters = array("1", $nowdate, (int)$_SESSION['cmsloginid'], $id); bind_pdo($sql, $parameters);
$dbh = null;
header("Location: product_detail_index.php?msg=刪除成功");
|