prepare($sql); $stmt->execute([$tipoReporte]); $reportes = $stmt->fetchAll(PDO::FETCH_ASSOC); } catch (PDOException $e) { die("Error en la consulta: " . htmlspecialchars($e->getMessage())); } // Agrupar por año $reportesPorAnio = []; foreach ($reportes as $r) { $anio = date('Y', strtotime($r['fecha_c'])); $reportesPorAnio[$anio][] = $r; } krsort($reportesPorAnio); ?> Transparencia UABC | Reportes Trimestrales



No hay reportes disponibles.
$lista): $collapseId = "collapse$anio"; $headingId = "heading$anio"; ?>