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 9123823
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T06:26:01+00:00 2026-06-17T06:26:01+00:00

I created a next and previous button in order to filter results 15 per

  • 0

I created a next and previous button in order to filter results 15 per page, it worked perfectly well until i added an sql query that filtered the results out. I noticed that in the url the query string was not attached so i tried to manipulate the next link so that it will show results when clicked, but still nothing (just a blank page)…heres how what i did to the next link:

$gap = $numRows - $startrow;

if ($gap >=15)

//now this is the next link..
echo '<a href="'.$_SERVER['PHP_SELF'].'?startrow='.($startrow+15).'?category='.$category.'" style="float:right">Next</a>'.'  ';

i added the category part, which gets its value from the category that the user selects, it displays a correct url when i click next but show a blank page of results.

Is there a way of doing this?

Thanks alot in advance.

  • 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-17T06:26:02+00:00Added an answer on June 17, 2026 at 6:26 am

    You made a typo; the second ? should be &

    echo '<a href="'.$_SERVER['PHP_SELF'].'?startrow='.$startrow+15).'&category='.$category.'" style="float:right">Next</a>'.'  ';
    

    This should work

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

Sidebar

Related Questions

I have created a bar over the keyboard for textfields with previous/next/done button selections.
I'm using the following script in my website in order to create pagination next-previous
there i have created a program with a tab button and page number. all
I created a slider with 2 buttons, previous and next, allowing the user to
I have created a layout that contains two buttons, Next and Previous. In between
i have created a calendar where a suer can scroll through previous and next
I am trying to create next and previous buttons on a page. I am
I need to create next and previous link urls here's a sample <a href=/calendar/2009/10/>previous</a>
I am trying to create my own next and previous arrows in a fancybox
Hi I have been trying to create a crossfade plugin with previous and next

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.