<div class="row"> <div class="col-md-2"></div> <div class="col-md-8"> <div class="table-responsive"> <table class="table table-bordered table-hover" id="sample-table-1" style="height: 10px;"> <thead> <tr class="info"> <th>Date</th> <th>IP Address</th> <th>Used 2FA</th> </tr> </thead> <tbody> <?php $id = $_SESSION['userid']; $sql = $obj->login_details($id); while ($row = mysql_fetch_array($sql)) { ?> <tr> <td><?php echo $row['date']; ?> </td> <td><?php echo $row['ip_address']; ?> </td> <td><?php echo $row['2fa']; ?>