<?php include 'header_siswa.php'; ?>
<?php 
include 'koneksi.php';
$data = mysqli_query($koneksi, "SELECT * FROM pengumuman");
?>

<div class="container mt-4">
    <h2 class="text-center mb-4">Pengumuman</h2>
    <div class="row">
        <?php while ($d = mysqli_fetch_array($data)) { ?>
            <div class="col-md-6 col-lg-4 mb-4">
                <div class="card shadow-sm">
                    <div class="card-body">
                        <h5 class="card-title">Pengumuman:<?php echo $d['judul']; ?></h5>
                        <p class="card-text">
                            <strong>Isi Pengumuman:</strong> <?php echo $d['keterangan']; ?><br>
                            <strong>Tanggal Pengumuman:</strong> <?php echo $d['tanggal']; ?><br>
                           
                        </p>
                    </div>
                </div>
            </div>
        <?php } ?>
    </div>
</div>

