I need to get selected value from db into datalist box.Tell me how to do it. Here is the code. 

```
<input list="Rank_Name" class="form-control" required>
                            <datalist id="Rank_Name">
                         <?php
                            $sel_cus = "select Rank_Name from ranks where Rank_Status=1";
                            $res_cus = mysqli_query($connection, $sel_cus);
                            while ($row = mysqli_fetch_array($res_cus)) {
                            ?>
                            <option value="<?php echo $row['Rank_Name'];?>"></option>
                           <?php
                            } 
                            ?>
                            </datalist>                   

```