/var/www/hkosl.com/alliancealliance/webadmin/slideshow_status.php


1
2
3
4
5
6
7
8
9
10
<?php
    
require_once("check_login.php");
    
$slideid = (int)$_GET["slideid"];

    
$sql "update slideshow set status=case when status = 1 then 0 else 1 end, lastupdate=?, lastupby=? where slideid=?";
    
$parameters = array($nowdate,$_SESSION['cmsloginid'],$slideid);

    
bind_pdo($sql$parameters);

    
header("Location: slideshow_index.php?msg=2");