Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8739703
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T10:59:19+00:00 2026-06-13T10:59:19+00:00

Does anyone know of a good resource on how to create the hyperlink numbers

  • 0

Does anyone know of a good resource on how to create the hyperlink numbers at the bottom of a results page as search engines do to load the next number of results?

The page would load the first 10 results. And then if you click on the number, it loads corresponding results in that 10 number range.

Example:

0-10 -> show no numbers

11-20 -> show 1, 2

21-30 -> 1, 2, 3

up to 50
anything more than 50 does 1,2,3,4,5…..67 [last number].

My thoughts so far (I’m doing this in PHP/mysqli but the logic is more important than the code):

$total = mysqli_num_rows($result) //total number of reqults from sql query
if ($total>10) {
$last = intval($total/10) + 1 //get the last number of the results

if($last <= 5){
for ($i, $i<$last, $i++){
//print the numbers as hyperlinks
} else {
  //print 1 through 5 ... then $last
}
}

This though is static from only 1-5…last number while the search engines have it so if you click on the number, it remembers that number and bases the new logic on it. So if I click on the 5 in my formula, it should change to something like:

[previous] 3,4,5,6,7….67 [next]

And then I would just pass the number to the page itself again and limit the results based on what number was passed. Any suggestions also on the best way to pass the info?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T10:59:21+00:00Added an answer on June 13, 2026 at 10:59 am

    You are looking for a pagination script. Visit this link The page is in Arabic but forth post is of pagination and you can download source for english or arabic version of pagination

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone know of a good resource that will show me how to load
Does anyone know of a good online resource which gives a clear reference on
Does anyone know good example of using CSS to create rounded corner box where:
Does anyone know any good resource where example (real) data can be downloaded for
Does anyone know a good online resource about using SQL Server 2005 dependency cache
Does anyone know of a good resource for open-source libraries for asynchronous C# (or
Does anyone know any good book or web resource for geometric and mathematical fundamentals
Does anyone know a good resource related to remapping the pixels in a video
Does anyone know where can I find a good resource on WINAPI messages? The
Does anyone know of any good resources that fully explain how functions and results

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.