<?php
include "dbconnect.php"; // Database Connection

if (isset($_GET['id'])) {
    $id = $_GET['id'];

    // **डेटाबेस से डिलीट करें**
    $stmt = $con->prepare("DELETE FROM job_applicants WHERE id = ?");
    $stmt->bind_param("i", $id);

    if ($stmt->execute()) {
        echo "<script>alert('Record Deleted Successfully!'); window.location.href='registrationlist.php';</script>";
    } else {
        echo "<script>alert('Error: Unable to Delete!');</script>";
    }
}
?>
