File "index.php"
Full Path: /home/custbahd/tourismfraternity.com/admin/blogs/video-blogs/delete/index.php
File size: 424 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
session_start();
include_once('../../../db/saucerer.php');
if(isset($_GET['id'])){
$sql = "UPDATE blogs SET deleted = '1' WHERE id = '".$_GET['id']."'";
//use for MySQLi OOP
if($conn->query($sql)){
$_SESSION['success'] = 'Video blog deleted successfully';
}
else{
$_SESSION['error'] = 'Something went wrong while deleting the video blog!';
}
}
header('location: ../');
?>