<div class="row"> <div class="col-md-4"> </div> <div class="col-md-4" style="margin-top:420px"> <h3 class="text-danger">Final wait list of patients :</h3> <table class="table"> <tr> <th>Serial :</th> <th>User Name :</th> </tr> <?php $waitu = $user->listofFwait(); $i = 0; foreach ($waitu as $lu) { $i++; ?> <tr class="text-success"> <td><?php echo $i; ?> </td> <td><?php echo $lu['user_name']; ?> </td>