Domain: amberpublishers.in
Server Adress: 86.38.243.169
privdayz.com
<?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();
}
}
?>
