I wrote a PHP code that selects data from the database and displays them on the web page. But I'm stuck in writing the page pagination code. And also I want a Bootstrap page pagination.
<?php  
$sql = "SELECT * FROM `links` WHERE `title` LIKE '%$search_text%' OR `keywords` LIKE '%$search_text%' OR `description` LIKE '%$search_text%' ";
$result = $con->query($sql);
$rowcount=mysqli_num_rows($result);
if ($result->num_rows > 0) {
echo "<p class='m-0 pl-3 h5' style='font-size:1.45vw;'>Received informations about <strong>$rowcount</strong> websites!";
  // output data of each row
  while($row = $result->fetch_assoc()) {
    $title = $row["title"];
    $onion_address = $row["onion_address"];
    $description = $row["description"];
echo "
<div class='m-0 p-3'>
<h4 class='p-0 m-0' style='color:blue;font-size:2.2vw;'>$title</h4>
<p class='h6 text-success font-weight-bold' style='font-size:1.3vw;'>$onion_address</p>
<p class='h6' style='font-size:1.3vw;'>$description</p>
</div>
";
  }
} else {
  echo "0 results";
}
?>
 
     
    