kumarrana Posted January 9, 2008 Share Posted January 9, 2008 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? Quote Link to comment Share on other sites More sharing options...
Ken2k7 Posted January 9, 2008 Share Posted January 9, 2008 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. Quote Link to comment Share on other sites More sharing options...
kumarrana Posted January 9, 2008 Author Share Posted January 9, 2008 Yes I am using PHP and MySql. That makes perfect sense but my goal is to have user edit, their content in the same page. Basically if user is editing their post, display both, old post as well as editing form at the same spot. Quote Link to comment Share on other sites More sharing options...
Ken2k7 Posted January 9, 2008 Share Posted January 9, 2008 So like the quick edit feature here? Well you'll have to use AJAX for that. Quote Link to comment Share on other sites More sharing options...
kumarrana Posted January 10, 2008 Author Share Posted January 10, 2008 I never used AJAX yet. I am just trying to do everything on either PHP or MySQL. If anybody wanna look at the code, and give me an idea, that would be great. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.