every time am trying to click on the thread
it directs me to the same thread detail in spite it reads the thread Id in the URL
and i don't know why?
this is the main page which directs me to the thread page
while($record=mysqli_fetch_assoc($query)){
echo
"<tr><td><b><a href='thread.php?threadID=".$record["threadID"]."'>".
$record["title"]."</a></b></td>
<td><b>".$record["latest"]."</b></td>";
if($logged_as_mod){
echo"<td><b><a href='kill.php?threadID=".$record["threadID"]."'>Delete Thread</a></td>";
echo "</tr>";
}
}
and this is the thread page
while($record=mysqli_fetch_assoc($query)){
if(!$set_up){
setup_page("Thread",$record["title"]);
echo "<p>".($logged_as_mod? "mod: ":"user: ").
$logged_in_user." | <a href='welcomepage.php'>Logout</a></p>";
echo"<hr width='100%' align='center'>";
}
echo "<table>
<tr>
<td><b>".$record["title"]."--</b></td>
<td><b>".$record["name"]."</b></td>
<td><b>".$record["dateposted"]."</b></td>
<td><b>".$record["totalposts"]."</b></td>
<td><b>".$record["showemail"]."</b></td>
<td><b>".($record["userID"]==$logged_userID || $logged_as_mod?"
<a href='post.php?postID=".$record["postID"]."'>Edit Post</a>":"").
"</b></td></tr></table><blackquote>".
stripslashes(nl2br($record["body"]))."</blackquote><hr width='100%' align='center'>";
}