GIF89a php
Current File : /home/hencockfreshchic/public_html/admin.cpanel/uploads/delVoucher.php
<?php
ob_start();
ini_set('error_reporting', E_STRICT);
include("connect.php");

$id=trim($_GET['id']);

$sql2="DELETE FROM `prod_discount` WHERE `sr`='".$id."'";
$rs2=mysqli_query($conn,$sql2);
if($rs2>0)
{
	echo '<script>alert("Discount has been deleted from the selected products"); window.location.href="discountform.php";</script>';
	}
	else
	{
echo '<script>alert("Unable to delete discount | Contact to Techeor Technology); window.location.href="discountform.php";</script>';
	}

?>