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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T13:45:51+00:00 2026-06-12T13:45:51+00:00

I am currently building a blog from scratch for a website I’m building because

  • 0

I am currently building a blog from scratch for a website I’m building because my client asked me to do so as opposed to using a simple library. Each post is a dynamically created page and the file name is the date is was created (I’ve made sure to address the problem of posting more than one post a day).

The problem is that I have no idea how to make the “next post” button. The “previous post” button wouldn’t be a problem since I could just link it to the most recent post during the current post’s creation. My table in the database for the blog is as follows:

    num - auto increment post number
    date - date posted
    src - page location

I could rebuild the blog to be completely server-sided and just have one page for the blog that will cycle through each post. I don’t really want to do that though since you couldn’t send someone a direct link to an individual blog post. My other idea was to rename each page based on post number, but if we ever had to delete a post, that wouldn’t work.

I really have no idea what to do. Neither of my solutions are optimal and they will both pose problems in the future.

Thanks in advance for any 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-12T13:45:53+00:00Added an answer on June 12, 2026 at 1:45 pm

    You write:

    I could rebuild the blog to be completely server-sided and just have one page for the blog that will cycle through each post. I don’t really want to do that though since you couldn’t send someone a direct link to an individual blog post.

    I strongly recommend using a database solution rather than creating static files with blog content in them. On the long run, it’s much more flexible. If you want to delete a post, edit a post, move a post, it’s just much more accessible if everything is easily accessible.

    The problem you pose with not being able to direct link to blog posts can be easily circumvented: use GET-variables in your URL. If you have a PHP page to display blogposts, say, displaypost.php, you could add a variable to the end telling the page which post to display. Your url could then be: yoursite.com/displaypost.php?postid=12

    That would also make your problem of linking to the previous and next posts much easier; simply check the database what the next id is, higher than the current one (or one lower).

    In my opinion it’s inevitable that you switch to a database-driven solution somewhere down the road – rather soon than later, to prevent having to do stuff twice.

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

Sidebar

Related Questions

I have a Django project for a simple blog/forum website I’m building. I’m using
I am currently building a simple application for Android using the NDK and needs
I'm currently building a simple REST interface using Jersey with embedded Jetty. Server server
I'm currently building a reporting service (WCF) - filled reports are produced using an
I am currently building my project locally using MVC. The user enters some search
We're currently building multiple copies of our Chrome CRX, one for each of our
I'm currently building a website with Django and want to host user bio style
I got the following Request Queue implementation from this blog: http://dsgdev.wordpress.com/2006/10/28/building-a-javascript-http-request-queue/ and want to
I am currently building my own small scale Blog CMS with ASP MVC C#.
I'm building a small website with Symfony2 and Doctrine2. There are blog posts, events

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.