prepare($sql); $stmt->execute([$id_noticia]); $noticia = $stmt->fetch(PDO::FETCH_ASSOC); if (!$noticia) { header('Location: index.php'); exit(); } ?>