1
2
3
4
5
6
7
8
9
10
11
12
13
|
<?php include_once ("check_login.php");
$nowdate = date("Y-m-d H:i:s"); $faq_id = (int)$_GET["faq_id"];
$sql = "update faq set status=case when status = 1 then 0 else 1 end, lastupdate=?, lastupby=? where faq_id=?"; $parameters = array($nowdate, $_SESSION['cmsloginid'], $faq_id); bind_pdo($sql, $parameters);
$dbh = null;
header("Location: faq_index.php?msg=修改成功");
|