prepare($query); $stmt->execute(); $sentMessages = $stmt->fetchAll(); } catch (PDOException $e) { error_log("Error al consultar mensajes enviados: " . $e->getMessage()); $sentMessages = []; $db_error = "Error de base de datos: " . $e->getMessage(); } $pageTitle = 'Mensajes Enviados'; require_once __DIR__ . '/templates/header.php'; ?>
| Plataforma | Destinatario | Contenido (Previo) | Fecha de Envío | Creado por | Acciones |
|---|---|---|---|---|---|
| No se han enviado mensajes todavía. | |||||
| = htmlspecialchars(ucfirst($msg['platform'])) ?> | = htmlspecialchars($msg['recipient_name']) . ' (' . $msg['recipient_type'] . ')' ?> | = date('d/m/Y H:i', strtotime($msg['sent_at'])) ?> | = htmlspecialchars($msg['creator_username']) ?> |
|
|