prepare($sql);
$stmt->execute([$usuario_id]);
$user = $stmt->fetch(PDO::FETCH_ASSOC);
$rol = $user['rol'];
// Si el usuario es de rol 3, redirigir a la sección de transparencia
if ($rol == 3) {
header("Location: consulta_organos.php");
exit();
}
// Si el usuario es de rol 3, redirigir a la sección de transparencia
if ($rol == 4) {
header("Location: lista_cursos.php");
exit();
}
?>
Dashboard - FCA
Panel de Gestión
Noticias
ID
Imagen
Título
Fecha
Acciones
prepare($sql);
$stmt->execute();
$noticias = $stmt->fetchAll(PDO::FETCH_ASSOC);
if (count($noticias) > 0) {
foreach ($noticias as $row) {
echo "