<?php

require_once '../Model/Articulo.php';
$ofertaAux = new Articulo($_POST['idBorrar']);
$ofertaAux->delete();
header("Location: indexArray.php");
<?php

require_once '../Model/Articulo.php';
$articuloAux = new Articulo($_GET['id']);
$articuloAux->delete();
header("Location: index.php");