D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
thread-self
/
root
/
home
/
shubmkcj
/
designpitara.com
/
admin
/
job-post
/
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 `apply_jobs_post` SET `status` = 'active' WHERE `apply_jobs_post`.`id` = '$net_id'"; if (mysqli_query($conn, $query)) { header("Location:job-enquiry.php"); } 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 `apply_jobs_post` SET `status` = 'deactive' WHERE `apply_jobs_post`.`id` = '$net_id'"; if (mysqli_query($conn, $query)) { header("Location:job-enquiry.php"); } 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 `apply_jobs_post` WHERE `apply_jobs_post`.`id` = '$t_id'"; if (mysqli_query($conn, $query)) { header("Location:job-enquiry.php"); } else { include('include/error-modal.php'); } mysqli_close($conn); } #################################################################################### ?>