GIF89a
<?php ob_start(); ini_set('error_reporting', E_STRICT); include("connect.php"); $id=trim($_GET['id']); $sql2="DELETE FROM `coupons` WHERE `sr`='".$id."'"; $rs2=mysqli_query($conn,$sql2); if($rs2>0) { echo '<script>alert("Coupon has been deleted from the selected products"); window.location.href="coupons.php";</script>'; } else { echo '<script>alert("Unable to delete coupon | Contact to Techeor Technology); window.location.href="coupons.php";</script>'; } ?>