<?php

require_once("../models/db_connection.php");
if (isset($_GET['id'])) {
    $sql = mysqli_query($conn, "DELETE FROM fees WHERE id = '$_GET[id]'");
    if ($sql) {
        echo "<script>
        alert('Course deleted successfully');
        window.location.href = 'view_course.php';
    </script>";
    }
}
