I am making a forum script and where it shows the replies it shows the reply (its supposed to show the users name beside it) it only shows 1 username for all the replies… (note: some variables in the script I am posting won’t be posted, thats not the error.)
[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 "