D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
thread-self
/
root
/
home
/
shubmkcj
/
designpitara.com
/
admin
/
testimonials
/
Filename :
execute-blogs.php
back
Copy
<?php error_reporting(0); include("../include/config.php"); ################################################################################################ //For detete Delete_ebook data if(array_key_exists("Delete_testimonial",$_REQUEST)){ $t_id = $_GET['id']; // echo $t_id; die; $query="DELETE FROM `blogs_review` WHERE `blogs_review`.`id` = '$t_id'"; if (mysqli_query($conn, $query)) { // unlink("upload-files/$s_img"); header("location:view-blogs-review.php"); } else { include('include/error-modal.php'); } mysqli_close($conn); } ########################################################################################## // status active status_active_ebook data if(array_key_exists("status_active_testimoniale",$_REQUEST)){ $net_id = $_GET['id']; $query="UPDATE `blogs_review` SET `status` = 'active' WHERE `blogs_review`.`id` = '$net_id'"; if (mysqli_query($conn, $query)) { header("location:view-blogs-review.php"); } else { include('include/error-modal.php'); } mysqli_close($conn); } ########################################################################################## // status deactive status_deactive_ebook data if(array_key_exists("status_deactive_testimonial",$_REQUEST)){ $net_id = $_GET['id']; $query="UPDATE `blogs_review` SET `status` = 'deactive' WHERE `blogs_review`.`id` = '$net_id'"; if (mysqli_query($conn, $query)) { header("location:view-blogs-review.php"); } else { include('include/error-modal.php'); } mysqli_close($conn); } ################################################################################################## ?>