ok

Mini Shell

Direktori : /home2/selectio/www/salemgovtitialumni.in/dashboard/admin/
Upload File :
Current File : /home2/selectio/www/salemgovtitialumni.in/dashboard/admin/video-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_video WHERE id=?");
	$statement->execute(array($_REQUEST['id']));
	$total = $statement->rowCount();
	if( $total == 0 ) {
		header('location: logout.php');
		exit;
	}
}
	
// Delete from tbl_video
$statement = $pdo->prepare("DELETE FROM tbl_video WHERE id=?");
$statement->execute(array($_REQUEST['id']));

header('location: video.php');
?>

Zerion Mini Shell 1.0