1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
<?php require_once ("check_login.php");
$nowdate = date("Y-m-d H:i:s"); $ospageid = (int)$_GET["ospageid"]; $page_category = $_GET["page_category"];
$sql = "update otherspage set status=case when status = 1 then 0 else 1 end, lastupdate=?, lastupby=? where ospageid=?"; $parameters = array($nowdate, $_SESSION['cmsloginid'], $ospageid); bind_pdo($sql, $parameters);
$dbh = null;
header("Location: otherspage_index.php?page_category=$page_category&msg=Update Successful"); ?>
|