PHP Pagination for MySQL posts

     

I've been trying for hours to implement a pagination for a blog that I am working on but I just can't find it to work. In the URL it gives me (myurl).php?pageno=


Without the page number requested.


This is my page to handle the database request:


require_once("db-connect.php");
$offset = 0;  $page_result = 5;
if($_GET['pageno'])  {   $page_value = $_GET['pageno'];   if($page_value > 1)   {    $offset = ($page_value - 1) * $page_result;   }  }
  $results = mysqli_query($connection