<div class="col-md-2"> <a href="../mysql/add_goals.php" class="btn btn-large btn-info"><i class="glyphicon glyphicon-plus"></i> Add a Goal</a> </div> <div class="col-md-8"> <div class="clearfix"></div> <table class='table table-bordered table-responsive'> <tr> <th style="width:10%">Timeframe</th> <th style="width:40%">Goal</th> <th style="width:40%">How</th> <th colspan="2" align="center">Actions</th> </tr> <?php $query = "SELECT * FROM `xff_goals` where `user_id` ='" . $_SESSION['uid'] . "'"; $records_per_page = 5; $newquery = $crud->paging($query, $records_per_page); $crud->dataview($newquery); ?> <tr> <td colspan="7" align="center"> <div class="pagination-wrap"> <?php $crud->paginglink($query, $records_per_page); ?> </div> </td> </tr> </table>