Current location: Hot Scripts Forums » Programming Languages » PHP » the same thread over and over??


the same thread over and over??

Reply
  #1 (permalink)  
Old 11-04-07, 11:24 AM
ausgezeichnete's Avatar
ausgezeichnete ausgezeichnete is offline
Wannabe Coder
 
Join Date: Oct 2007
Posts: 114
Thanks: 0
Thanked 0 Times in 0 Posts
Arrow

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
PHP Code:

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
PHP Code:

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'>";

for example"
this is the page
Quote:
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
Quote:
Willkommen Mein Thread

user: haan | Logout
Willkommen Mein Thread-- maha 2007-11-05 15:53:25 0 0
helloo welcome to TWO
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

Last edited by Christian; 11-04-07 at 01:12 PM. Reason: merged
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Going Insane Over Lists and Arrays mtorbin Perl 3 06-03-04 04:19 AM
Image Swap on a text link Roll Over Jaali JavaScript 1 04-15-04 09:43 AM
Sites Over 2000 Unique Visitors Look Here feha Traffic Exchange 1 04-11-04 10:39 PM
Software Portal Over 27,000 Software titles in stock! Free downloads, shareware, an forum.downloadline.com General Advertisements 0 02-15-04 09:37 AM
Selling Digital Products Over the Internet hexagram The Lounge 14 01-19-04 01:02 PM


All times are GMT -5. The time now is 07:31 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.