ok
Direktori : /proc/thread-self/root/home2/selectio/www/lilyexpresslive/software/admin/ |
Current File : //proc/thread-self/root/home2/selectio/www/lilyexpresslive/software/admin/system-user-delete.php |
<?php require_once('header.php'); ?> <?php if(!isset($_REQUEST['id'])) { header('location: logout.php'); exit; } else { // Check the id is valid or not $statement = $pdo->prepare("SELECT * FROM tbl_system_user WHERE id=?"); $statement->execute(array($_REQUEST['id'])); $total = $statement->rowCount(); if( $total == 0 ) { header('location: logout.php'); exit; } } ?> <?php // Delete from Pincode /*$statement = $pdo->prepare("DELETE FROM tbl_user WHERE id=?"); $statement->execute(array($_REQUEST['id']));*/ $statement = $pdo->prepare("Update tbl_system_user set status='Inactive' WHERE id=?"); $statement->execute(array($_REQUEST['id'])); header('location: system-users.php'); ?>