<?php
require 'functions/functions.php';
$var = $_GET['collegeType'];
$query = "DELETE FROM `$dbname`.`main_course` WHERE `main_course`.`collegeType` = '$var' LIMIT 1";

mysqli_query($conection, $query) or die(mysqli_error());
?>

<script>
location.href='course.php';
</script>