Jump to content

PHP/MySQL Paging blog


kumarrana

Recommended Posts

Hey, I have been writing a blog but stuck on little things. Mine Display page has paging options after contents get long. Once I have edit, delete, post and other options on posts, it works fine but automatically  linked to the first page. Make sense? Mean, if post is located in page 4, and user hits edit, editing part works but page moves to page 1. Which is kinda annoying. Any idea how to fix?

Link to comment
Share on other sites

I'm assuming you're using a database for this. So if the post has a unique ID and content value, you can just UPDATE the database on the content (but don't change the ID) and when you display the contents on the page, just sort the ID descendingly so you get the most recent post.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.