1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
<?php include_once('../../check_login.php');
$refid = $_GET["refid"]; $type = $_GET["type"];
$sth2 = $dbh->prepare("Update banner set deleted = 1 WHERE refid=?"); $parameter2 = array($refid); if (!$sth2->execute($parameter2)) throw new Exception('[' . $sth2->errorCode() . ']: ' . print_r($sth2->errorInfo())); else header("Location: banner_index.php?type=".$type."&msg=刪除成功");
$dbh = null;
?>
|