Don't know what the problem is in my script.

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 " "; // echo out the contents of each row into a table echo ''; echo ""; echo ""; } // close table> echo "
'.badWordFilter($row12->content).'

"; ?>

Please do not cross post the same problem. We answered this post in the subject titled “:/”…

This is a waste of our time. And, you used two different user names. This post is closed!

Sponsor our Newsletter | Privacy Policy | Terms of Service