<?php include("conex.php"); $link=Conectarse(); $id = (int)$_GET['id']; $query = mysql_query("DELETE FROM productos WHERE id = ".$id)or die(mysql_error()); header("Location: eliminar_productos.php"); ?>