/var/www/hkosl.com/dashboard/webadmin/slideshow_delete.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
    
include 'config.php';
    
// Check if the user is logged in
    
if ((!isSet($_SESSION['loginname'])) || ($loggin <> '1')) {
        
header("Location: login.php");
        exit;
    }

    
$slideid $_GET["slideid"];


    
$sth2       $dbh->prepare("Update slideshow set deleted = 1,lastupdate=?, lastupby=? WHERE slideid=?");
    
$parameter2 = array($nowdate$_SESSION["cmsloginid"],$slideid);
    if (!
$sth2->execute($parameter2))
        throw new 
Exception('[' $sth2->errorCode() . ']: ' print_r($sth2->errorInfo()));
    else
        
header("Location: slideshow_index.php?msg=Deleted");

    
$dbh null;