<div style="margin-top:70px;margin-bottom:50px" class="row"> <div class="col-md-2"> </div> <div style="border:1px solid;padding:10px" class="col-md-8"> <h3 style="color:red" class="text-center" > List of all Voters:</h3> <table class="table table-condensed"> <tr class="success"> <th>Serial </th> <th>Full Name </th> <th>User Name </th> <th>Email </th> </tr> <?php $i = 0; $userid = $user->getuserByid(); foreach ($userid as $user) { $i++; ?> <tr class="info"> <td><?php echo $i; ?> </td> <td><?php echo $user['full_name']; ?> </td> <td><?php echo $user['user_name']; ?>