<?php 
        require_once "DBConfig.php";
 		$id = $_REQUEST['key']; 
		$u = $_REQUEST['u'];
			$sql = "DELETE FROM product_table WHERE blog_id='".$id."'";
						if ($link->query($sql) === TRUE) 
						{
						echo "<script type='text/javascript'> window.onload = function () { alert('Product info deleted successfully!');	   					
				window.location.href='Products.php?u=$u';} </script>"; 
						}
						else 
						{
						
						echo "<script type='text/javascript'> window.onload = function () { alert('Error: Please try again later!');	   					
				window.location.href='Products.php?u=$u';} </script>"; 
							
						}
?>