Hey everyone I am new here obviously and I have been working on this php based site for a long time and I am wondering what I am doing wrong to show my new members that my members added and I added to the DB. Now I have tested it and it works perfect when I have it on a regular page but once I put it in my marquee spot on the site it only shows 1 newest member and not 5 like I wanted! I am so confused and I am hoping someone here can help me.
[code]$query = “SELECT * FROM {$dbprefix}members WHERE disable = ‘0’ ORDER BY rank DESC”;
$result = mysql_query($query)
or die(mysql_error());
while($row = mysql_fetch_array($result))
{
extract($row);
$namecolor = getRankCatInfo(“color”, $rank);
$filterUsername = textFilter($username);
$newmembers = "$filterUsername
";
}
<?php echo $newmembers; ?>
That is the code without the $i=1 and $i<5 or something because it was not working but I am hoping someone here can help me. Thanks for reading. :’(