D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
shubmkcj
/
designpitara.com
/
admin
/
book-appointment
/
Filename :
execute-jobs-enquiry.php
back
Copy
<?php error_reporting(0); include("../include/config.php"); ########################################################################################## // status active data if(array_key_exists("status_active_jobs",$_REQUEST)){ $net_id = $_GET['id']; $query="UPDATE `book_appointment` SET `status` = 'active' WHERE `book_appointment`.`id` = '$net_id'"; if (mysqli_query($conn, $query)) { header("Location:$admin_baseurl"."book-appointment/"); } else { include('include/error-modal.php'); } mysqli_close($conn); } ########################################################################################## // status deactive data if(array_key_exists("status_deactive_jobs",$_REQUEST)){ $net_id = $_GET['id']; $query="UPDATE `book_appointment` SET `status` = 'deactive' WHERE `book_appointment`.`id` = '$net_id'"; if (mysqli_query($conn, $query)) { header("Location:$admin_baseurl"."book-appointment/"); } else { include('include/error-modal.php'); } mysqli_close($conn); } ################################################################################################## //For detete data if(array_key_exists("delete_jobs_enquiry",$_REQUEST)){ $t_id = $_GET['id']; // echo $t_id; die; $query="DELETE FROM `book_appointment` WHERE `book_appointment`.`id` = '$t_id'"; if (mysqli_query($conn, $query)) { header("Location:$admin_baseurl"."book-appointment/"); } else { include('include/error-modal.php'); } mysqli_close($conn); } #################################################################################### ?>