ok
Direktori : /home2/selectio/public_html/salemgovtitialumni.in/dashboard/admin/ |
Current File : /home2/selectio/public_html/salemgovtitialumni.in/dashboard/admin/subscriber-delete.php |
<?php require_once('header.php'); ?> <?php // Preventing the direct access of this page. if(!isset($_REQUEST['id'])) { header('location: logout.php'); exit; } else { // Check the id is valid or not $statement = $pdo->prepare("SELECT * FROM tbl_subscriber WHERE subs_id=?"); $statement->execute(array($_REQUEST['id'])); $total = $statement->rowCount(); if( $total == 0 ) { header('location: logout.php'); exit; } } ?> <?php // Delete from tbl_subscriber $statement = $pdo->prepare("DELETE FROM tbl_subscriber WHERE subs_id=?"); $statement->execute(array($_REQUEST['id'])); header('location: subscriber.php'); ?>