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
https://forums.phpfreaks.com/topic/85246-phpmysql-paging-blog/
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
https://forums.phpfreaks.com/topic/85246-phpmysql-paging-blog/#findComment-434880
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.