<?php 
include("header.php"); 
include_once("db_connect.php");
$perPage = 25;
$sqlQuery = "SELECT party_det_id,sel_date FROM design_sel_det GROUP BY party_det_id,sel_date ORDER BY design_sel_det_id DESC";
$result = mysqli_query($conn, $sqlQuery);
$totalRecords = mysqli_num_rows($result);
$totalPages = ceil($totalRecords/$perPage)
?>
<title>webdamn.com : Demo Advanced Ajax Pagination with PHP and MySQL</title>
<script src="plugin/simple-bootstrap-paginator.js"></script>
<script src="js/pagination.js"></script>
<?php //include('container.php');?>
<div class="container">
	<div class="row">
		<h2>Example: Advanced Ajax Pagination with PHP and MySQL</h2> 
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
					<th>Id</th>
					<th>Name</th>
					<th>Age</th>
					<th>Address</th>
					<th>Skills</th>
					<th>Designation</th>
				</tr>
			</thead>
			<tbody id="content">
			</tbody>
		</table>
		<div id="pagination"></div>
		<input type="hidden" id="totalPages" value="<?php echo $totalPages; ?>">
	</div>
</div>
<?php include('footer.php');?>