<?php

require '../modelo/Reserva.php';
extract($_GET);
error_reporting(E_ALL);
ini_set('display_errors', 1);
$var1 = Reserva::eliminar_Reserva($id);
echo $var1;
if ($var1 == 1) {
    // echo "<script>alert('Datos eliminados')</script>";
    echo "<script>location.href= '../vista/gestionar_reservas.php' </script>";
} else {
    //   echo "<script>alert('Error!')</script>";
}
//Reserva::eliminar_Reserva(htmlspecialchars($id));
//
//if (!$id) {
//    echo "<script>alert('Error!');</script>";
//        echo "<script>location.href='../views/verreservas.php'</script>";
//
//}else{
//    ModReservationFunctions::deleteUser(htmlspecialchars($id));
//
//}
//