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

  • Home
  • SEARCH
  • 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 8890221
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T22:27:05+00:00 2026-06-14T22:27:05+00:00

I am trying to create pagination on some pages that display rows from a

  • 0

I am trying to create pagination on some pages that display rows from a MySQL table. Each page displays six items from the table. I am using a while loop with:

$row_users = mysqli_fetch_array($result_users, MYSQL_NUM);

It just keeps looping through the results until there are no more (I would include the full code but it’s part of a very large amount of elements). I have a GET variable from the page id as:

$page = $_GET['page'];

Basically I want to start the fetch array on the specific row for each page. For example on http://www.example.com?page=2 I would like it to start on the thirteenth row of the table (($page*6)+1).

My question is, how do I get a fetch_array to start on a certain row? I saw this post: Mysqli fetch array nth row but that just deals with grabbing the specific row, not starting the loop and continuing on past that row. I can’t seem to find the method of doing this anywhere. Perhaps I’m Googling the wrong thing…thanks for your help!

  • 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-14T22:27:06+00:00Added an answer on June 14, 2026 at 10:27 pm

    Rather than trying to skip the rows you don’t want while fetching them, it’s more efficient to tell MySQL not to produce those rows. Use the LIMIT clause at the end of your SELECT query to have MySQL only produce the rows you need:

    http://dev.mysql.com/doc/refman/5.0/en/select.html

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

Sidebar

Related Questions

I'm trying to create pagination for search results using MySQL and ColdFusion. My intention
I am trying to create a jquery plugin to do ajax table pagination (i.e
I am trying to create ajax pagination on Blog Page.. What I need to
Hello I am trying to create some simple pagination, but my php skills are
I'm trying to create a permalink to a comment on a page that uses
I'm trying to use Bootstrap's Pagination style. The documentation says to create the page
I'm trying to create a pagination class and use a variable from outside the
I'm trying create pagination on my page. The user can select the number of
I am trying to create a pagination footer for a page. Here is my
I am trying to create a dynamic pagination system for my website and I've

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.