Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
antiradionic
/
hirepro
/
admin
:
a_users_delete.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php if (session_status() == PHP_SESSION_NONE) { session_start(); } // Check if the user is not an Admin, redirect them to index.php if (!isset( $_SESSION["admin_role"]) || $_SESSION["admin_role"] !== "Admin") { echo '<script type="text/javascript">window.location.href = "index.php";</script>'; exit(); // Add an exit to stop further execution after redirection } $user_id = $_GET["id"]; require "config.php"; $query = "DELETE FROM `a_questionnaire` WHERE `id`= '{$user_id}'"; mysqli_query($conn, $query); header("Location:a_users.php"); ?>