query("SELECT id,titulo FROM landing_pages WHERE id={$landing_id}")->fetch_assoc(); if (!$landing) { die('Landing no existe'); } $from = trim($_GET['from'] ?? ''); $to = trim($_GET['to'] ?? ''); $where = "WHERE lf.landing_id={$landing_id}"; $params = []; $types = ''; if ($from !== '') { $where .= " AND lf.created_at >= ?"; $params[] = $from.' 00:00:00'; $types.='s'; } if ($to !== '') { $where .= " AND lf.created_at <= ?"; $params[] = $to .' 23:59:59'; $types.='s'; } $sql = "SELECT lf.id, lf.created_at, lf.nombre, lf.email, lf.telefono, lf.mensaje, lf.ip_address FROM landing_forms lf {$where} ORDER BY lf.id DESC LIMIT 500"; $st = $conn->prepare($sql); if (!empty($params)) { $st->bind_param($types, ...$params); } $st->execute(); $list = $st->get_result(); ?> Landing Leads
← Volver a Landings

Leads:

fetch_assoc()): ?> num_rows): ?>
IDFechaNombreEmailTeléfonoMensajeIP
Sin leads