/var/www/hkosl.com/littleark/webadmin/supplier_delete.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
    $page_settings 
= array(
        
'formid'     => 'Supplier'// for permission
        
'section'    => 'Supplier'// parent/page title
        
'subsection' => 'Supplier'// page title
        
'domain'     => 'supplier'// table/model name
        
'access'     => 'GNu'// for permission
    
);
    require_once 
"check_login.php";

    
$id = (int)$_GET["id"];

    
// Delete db
    
$sql        "update supplier set deleted = ?, lastupdate = ?, lastupby = ? WHERE id=?";
    
$parameters = array("1"$nowdate$_SESSION['cmsloginid'], $id);
    
bind_pdo($sql$parameters);

    
header("Location: supplier_index.php?msg=3");