<?php
// Include the database connection
include 'db_connection.php';

$class_id = $_GET['id'];

$sql = "DELETE FROM classes WHERE class_id = ?";
$stmt = mysqli_prepare($conn, $sql);
mysqli_stmt_bind_param($stmt, 'i', $class_id);
mysqli_stmt_execute($stmt);

header('Location: manage_classes.php');
exit;
?>
