
<?php $cl =$_REQUEST['cl']; ?>

<ul class="nav nav-pills flex-column flex-md-row mb-3">
    <?php
    include('./login/connect.php');
        $class =$cl;
        $house = $conn->query("SELECT * FROM class");
        while($row= $house->fetch_assoc()):
        $id = $row['class_id'];   
        $classname = $row['classname']; 
    ?>
   
    <li class="nav-item">
            <a class="nav-link <?php if($id==$cl){    echo 'active';;} ?> "href="class_play_attendance.php?cl=<?php echo $id; ?>"><i class="bx bx-user me-1"></i> <?php echo $classname; ?> </a>
        </li>
    <?php endwhile; ?>     
</ul>