If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

PHP and MySQL forum

I am building a forum that displays all of the titles and dates of the topics in 1 page, then after clicking on the name of the post i am trying to send the user to a page that displays the content of the thread, currently i am just using the body text to test, it is pulling correct information from the database but after it runs the query in the second page it always keeps that first result, even after backing up and loading the page again. I'm not sure what is causing this to pull the same results every time, here is my code.

Here is the forum.

PHP Code:

require_once '../header.php';

if (!$loggedin) die("You must be logged in to view the Forum.");
$user = $_SESSION['user'];