How would we select just, lets say 12 database entries per page, and then push 12 more onto the next page and so on and so forth?
This would be implementing pagination from boostrap, so:
<ul class="pagination">
<li><a href="#">1</a></li>
<li><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li><a href="#">4</a></li>
<li><a href="#">5</a></li>
</ul>
and if it helps here is some php, this is just the basic form that I used to grab and display the entires, but they all appear on one page right now.
$id = (empty($_GET['id'])) ? : $_GET['id'] ;
$query = "SELECT title,whole FROM stories ";
$stmt = $db->prepare($query);
$stmt->execute();
$row = $stmt->fetch(PDO::FETCH_ASSOC);
//delete this-> $info = mysql_fetch_array($query1); ?
while($row = $stmt->fetch(PDO::FETCH_ASSOC))
{
?>
<div class="left">
<a href="">
<span class="text-content"><span><?php echo htmlentities($row["whole"]); ?></span></span>
</a>
</div>
<?php
}
?>