GIF89a
<?php ob_start(); ini_set('error_reporting', E_STRICT); include("connect.php"); $id=$_GET['id']; $sql="DELETE FROM `prod_view` WHERE `sr`='".$id."'"; $rs=mysqli_query($conn,$sql); if($rs>0){ echo '<script>alert("Selected view on the product completly removed");</script>'; echo '<script>window.location.href="productView.php";</script>'; } else { echo '<script>alert("Unable to delete selected views");</script>'; echo '<script>window.location.href="productView.php";</script>'; } ?>