<?php
// borrar_turno.php
session_start();
include 'includes/db.php';

if (isset($_GET['id'])) {
    $id = $_GET['id'];
    $stmt = $pdo->prepare("DELETE FROM turnos WHERE id = ?");
    $stmt->execute([$id]);
}

header("Location: turnos.php");
exit;