Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Oct 2007
    Posts
    20
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Cool the same thread over and over??

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


  • #2
    New Coder
    Join Date
    Oct 2007
    Posts
    20
    Thanks
    4
    Thanked 0 Times in 0 Posts
    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

  • #3
    Super Moderator Inigoesdr's Avatar
    Join Date
    Mar 2007
    Location
    Florida, USA
    Posts
    3,642
    Thanks
    2
    Thanked 405 Times in 397 Posts
    Post the query you use on the thread page.

  • #4
    New Coder
    Join Date
    Oct 2007
    Posts
    20
    Thanks
    4
    Thanked 0 Times in 0 Posts
    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

  • #5
    New Coder
    Join Date
    Oct 2007
    Posts
    20
    Thanks
    4
    Thanked 0 Times in 0 Posts
    this is the query:
    Code:
    $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);


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •