-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDeleteItem.php
More file actions
30 lines (23 loc) · 803 Bytes
/
Copy pathDeleteItem.php
File metadata and controls
30 lines (23 loc) · 803 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
require_once("connect_mysql_class.php");
require_once("mysql_inc.php");
require_once("session.php");
$se=new session();
if(!$SerialNumbers=$se->get_value("SerialNumbers"))
{
echo "******************取得SerialNumbers失敗******************";
exit();
}
$ItemID=$_POST['ItemID'];
$db=new DB();
$db->connect_db($_DB['host'], $_DB['username'], $_DB['password'], $_DB['dbname']);
//$query="SELET FROM 'custom_information' where store ='".$SerialNumbers."' and item='".$ItemID."'";
$query="UPDATE custom_information SET life ='1' where store='".$SerialNumbers."' and item ='".$ItemID."'";
$db->query($query);
$query="UPDATE ".$SerialNumbers." SET State='DIE' where `ID`='".$ItemID."'";
$db->query($query);
?>
<script>
alert("刪除成功");
loadpage("#content","managepage.php");
</script>