<?php
// Include your database connection file
include('db_connection.php');

if(isset($_GET['id'])) {
    $student_id = $_GET['id'];

    // Delete student record
    $delete_query = "DELETE FROM students WHERE student_id = $student_id";
    mysqli_query($conn, $delete_query);

    // Redirect to manage students page
    header('Location: manage_students.php');
}
?>
