I don't actually have code to display i tried many ways but cannot get it to display.
I know how to display a count of members but not to display a quered result.
This is what i use to display a whole list of members
Calling code: $res = mysql_query("SELECT uname,team,status FROM authuser ORDER BY team='Clan Leader' DESC LIMIT 100");
Display code:
<? echo("<table width=407 border=0 align='center' cellpadding=0 cellspacing=0>
<tr>
<td width=75% align=center><table width=498 border=1 cellpadding=0 cellspacing=0 bgcolor='#CCCCCC'>
<tr><td width='362' align=left ><div align='center' class='style1'><strong>Clan Name</strong></div></td>
<td width='130' align=left><div align='center' class='style1'><strong>Member Type</strong></div></td>
<td width='130' align=left><div align='center'><strong>Status</strong></div></td>
</tr>");
for ($i = 0; $i < mysql_num_rows($res); $i++)
{
$tref = round($tref, 2);
$name = mysql_result($res, $i, "uname");
$id = mysql_result($res, $i, "team");
$stat = mysql_result($res, $i, "status");
$nn = $i + 1;
echo("<tr style=\"background-color: #f7f7f7\">
<td><div align='center'><font face=$fontface size=2>$name</font></div> <font face=$fontface size=2><center></td><td><div align='center'>$id</div></td>
<td><div align='center'>$stat</div></td>
</tr>");
}
echo("
</table></td>
</table><br>");
mysql_close;
?
That code uses a table to display results in split form,
The first post i want it to query the team field and display the uname of them results
so team='clan member' i want it to display the users in that team
Just uname is all i want, not all the members just the clan members uname