...

View Full Version : the same thread over and over??



ausgezeichnete
11-04-2007, 06:24 PM
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'>";
}

ausgezeichnete
11-04-2007, 06:34 PM
for example"
this is the page


Topic for debate

user: haan | Logout
Post new Thread
Thread title Last Post on..
Willkommen Mein Thread 2007-11-05 15:53:25
Welcome to Thread 2007-11-04 15:52:45

and when i click on either of them gives me that


Willkommen Mein Thread

user: haan | Logout
Willkommen Mein Thread-- maha 2007-11-05 15:53:25 0 0
helloo welcome to TWO

Inigoesdr
11-04-2007, 06:35 PM
Post the query you use on the thread page.

ausgezeichnete
11-04-2007, 06:36 PM
nooooo if i click Willkommen Mein Thread first
it keeps redirecting me to this page

and if click Welcome to Thread
it keeps redirecting me to this page

ausgezeichnete
11-04-2007, 06:37 PM
this is the query:


$query=mysqli_query($conn,
"select thread.title , posts.body , posts.dateposted , posts.postID , users.userID
, users.name , users.totalposts , users.email , users.showemail
from users,posts,thread
where posts.threadID=thread.threadID
and users.userID=posts.userID
and thread.threadID='".$threadID."'
order by posts.dateposted asc limit "
.($thread_list_offset-1).",".$posts_per_page);



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum