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/deletereviewer.php

<?php
session_start();
require 'include/PHPHelper.php';

if (!isset($_SESSION['userID'])) {
    header("location: login.php");
} else {
    if (isset($_GET['id'])) {
        $editorId = $_GET['id'];

        // Delete the editor from the database
        $query = "DELETE FROM reviewers WHERE id = ?";
        $stmt = mysqli_prepare($conn, $query);
        mysqli_stmt_bind_param($stmt, "i", $editorId);
        $stmtsql = mysqli_stmt_execute($stmt);
        if ($stmtsql) {
            // Editor deleted successfully
            mysqli_stmt_close($stmt);
            mysqli_close($conn);
            header("Location: editreviewer.php?success=1");
            exit();
        } else {
            // Error deleting editor
            mysqli_stmt_close($stmt);
            mysqli_close($conn);
            header("Location: editereviewer.php?error=2");
            exit();
        }
    } else {
        header("Location: editreviewer.php");
        exit();
    }
}
?>

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