<?php 	session_start(); ?>
<?php require_once("sass/connection.php"); ?>

                <?php 
				$tbl =$_REQUEST['tbl'];
				$idcol =$_REQUEST['idcol'];
				$id =$_REQUEST['id'];
				$redirect =$_REQUEST['redirect'];
				
				mysqli_query($connection,"DELETE FROM $tbl WHERE $idcol = '$id'")
				or die(mysqli_error()); 
				
						
							print "<script>";
	print "self.location='$redirect.php?id=1';";
	print "</script>"; 	
				
			
				?>