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

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

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