In my forums script when it is displaying the replies (it shows the username beside its reply) it always shows the same username even if that username didn’t post the reply. *I am only showing part of my script some variables in the script its showing arn’t posted in the part of this script (thats not the error.)
My code:
php
<?php echo ''.badWordFilter($gT->content).' |
';?> <?php $getReplies = mysql_query("SELECT * FROM Replies WHERE threadID='".$ThreadID."'"); $gR = mysql_fetch_object($getReplies) ; $gT = mysql_fetch_object($getThread) ; while($row12 = mysql_fetch_object( $getReplies)) { $gUt1 = mysql_query("SELECT * FROM Users WHERE username='".$gR->poster."'") or die(mysql_error()); $fgUt1 = mysql_fetch_object($gUt1); $gT = mysql_fetch_object($getThread) ; echo "
'.badWordFilter($row12->content).' | ';
echo "
"; ?>