|
Hi, I am working on a news system with a MySQL database, of course.
Right now, the news system undergoes a series of three pages:
1. Page with the news form to be processed.
2. Page that processes the form, inserts all the info into the DB, writes to a new file, and redirects the user to a page with a link to their newly created file.
3. Page that displays the information that was filled out in page 1 and is also the page that the user is taken to when they click on their link in page 2.
What I need to know is, how can I display data on each new "Page 3" that is created and is relevant to the information that was filled out for that specific page at that point in time?
For example, if a user fills out the news form, a link and a "Page 3" will be created that displays the information they filled out from Page 1. Then, when they go back and fill out the news form again, the new page should display information that is DIFFERENT from the first posting.
Right now, my issue is that every "Page 3" that is created shows the information from each instance of posting, when I only want it to show the information from when that page was posted.
If it helps, I have a "news_id" column that basically just auto-increments when something new is posted. Right now, the number in that column is up to 91 since I've tested it so many times.
I hope anyone can help and that you understand what is going on here
|