<?php include 'header.php';
include 'admin/config.php';
?>

<!-- breadcrumb -->
<div class="site-breadcrumb" style="background: url(assets/img/home/s0.png)">
    <div class="container">
        <h2 class="breadcrumb-title">About Us</h2>
        <ul class="breadcrumb-menu">
            <li><a href="index.php">Home</a></li>
            <li class="active">Board Administration</li>
        </ul>
    </div>
</div>
<!-- breadcrumb end -->


<!-- course-area -->
<div class="course-area py-80">
    <div class="container">
        <h2 class="mb-4 text-center">
            Bayaluseeme Area Development Board Administration
        </h2>
        <div class="row justify-content-center">

            <?php
            $sql = "select * from `board_administration`";
            $query = mysqli_query($con, $sql);
            if ($query) {
                foreach ($query as $row) {
                    $name = $row['name'];

                    $image = $row['image'];

                    $image_path = "admin/image/" . $image;

            ?>



                    <div class="col-md-6 col-lg-4">
                        <div class="course-item wow fadeInUp" data-wow-delay=".25s">
                            <div class="course-img">
                                <img src="<?php echo $image_path; ?>" alt="">
                            </div>
                            <div class="course-content text-center">

                                <h4 class="course-title mt-3">
                                    <?php echo $name; ?>
                                </h4>

                                <h5>
                                    Chairman
                                </h5>
                                <p>
                                    Bayaluseeme Development Board, Chitradurga
                                </p>

                            </div>
                        </div>
                    </div>

            <?php }
            }
            ?>


        </div>
    </div>
</div>
<!-- course-area -->

<?php include 'footer.php' ?>