<?php
require_once '../config/db.php';
$id = intval($_GET['id'] ?? 0);
$db = getDbConnection();
$stmt = $db->prepare('DELETE FROM telechargements WHERE id = ?');
$stmt->execute([$id]);
header('Location: admin-liste-telechargements.php');
exit;
