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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T19:06:15+00:00 2026-05-24T19:06:15+00:00

I have a specific problem regarding my website that I built with HTML, CSS,

  • 0

I have a specific problem regarding my website that I built with HTML, CSS, Masonry, and a little bit of PHP.

On my homepage, You can see that I am using JQuery Masonry to display my work. Every time I add a project, the layout is reordered quite a bit, as expected. It is very hard to predict where certain projects will land in the grid (since the height varies from project to project).

After you click an image, you are taken to the project page, with a project navigation at the top (Previous Project / Next Project). There is no fancy PHP or CMS going on here. I manually update the prev and next project links whenever I upload a new project. This usually means updating links on every project page (18 pages). I do this because when masonry rearranges the project grid on the homepage (after adding a new project), the prev and next project links will be out of date and will not be correct. For example, after uploading a new project, when I click “next project” it will take me to the incorrect project because the grid on the homepage is different than it was before.

I order the images from left to right, starting on the first row.

I would like to have a PHP include for the project navigation, but I do not know PHP very well. The code would achieve something like, “after clicking on the next project link go to x project”

  • 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-05-24T19:06:16+00:00Added an answer on May 24, 2026 at 7:06 pm

    Ok here is the most basic PHP pagination tutorial I could find. It doesn’t even use a database, just an array:

    Array Pagination in PHP

    Although I suspect you would be helping yourself a great deal if you sat down for a day and learnt the basics of PHP scripting. It’s quite a simple first language:

    PHP – A simple tutorial

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

Sidebar

Related Questions

I have the problem that an specific step in Ant can only be executed
I have run into a bit of a problem here: I had a problem-specific
I have a problem that Im not sure how to tackle. I can without
We have a problem in a specific server. All plus signs posted to the
I have a problem with a specific java client library. Here is the situation:
I have a specific changeset that I want to rollback my Development branch to,
I have a specific requirement that all children of a particular JComponent have double
I have a specific question, that could use a general answer... When building Multi-Tier
I have a quick question regarding a database that I am designing and making
Here is my problem: I'm developing a system that can be polled to retrieve

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.