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

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

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