<?php
    include "connection/connect.php";
    if($_POST['idx']) {
        $id = $_POST['idx'];      
        $sql = mysqli_query($mysqli, "SELECT * FROM kuota WHERE id= $id");
        while ($result = mysqli_fetch_array($sql)){
        ?>

        <form action="" method="post">
            <input type="hidden" name="id" value="<?php echo $result['id']; ?>">
            <div class="form-group">
                <label>Nama Siswa</label>
                <input type="text" class="form-control" name="kuota" value="<?php echo $result['kuota']; ?>">
            </div>

            <div class="form-group">
                <label>Tanggal</label>
                <input type="date" class="form-control" name="tanggal" value="<?php echo $result['tanggal']; ?>">
            </div>

              <button class="btn btn-primary" type="submit" name="btn_update">Update</button>

        </form>     

        <?php 
    } }

?>