1
2
3
4
5
6
7
8
9
10
11
12
|
<?php require_once ("check_login.php");
$id = (int)$_GET["id"];
$sql = "update logo set status=case when status = 'Enable' then 'Disable' else 'Enable' end, lastupdate=?, lastupby=? where id=?"; $parameters = array($nowdate, $_SESSION['cmsloginid'], $id); bind_pdo($sql, $parameters);
$dbh = null;
header("Location: logo_index.php?msg=Update Successfully");
|