$consulta = "delete from productos where id = '$id' "; $result = mysql_query($consulta, $link) or die( mysql_error() );