Parašė marqs· 2011 Vas. 3 23:02:27
#11
Tau reikia dar kad atvaizduotų kelinta vieta?
Bandyk šitą:
openside(TOP);
$result = dbquery("SELECT user_name, user_id, user_srank FROM ".$db_prefix."users ORDER BY user_srank DESC LIMIT 0,5");
echo "<table width='100%' cellpadding='0' cellspacing='1' class='tbl-border'>";
echo "<tr class='tbl2' align='center'><td width='10'><span class='small'>Narys</span></td><td width='10'><span class='small'>Taškai</span></td></tr>";
while ($data = dbarray($result)) {
echo "<tr class='tbl1'><td><span class='small'><a href='".BASEDIR."profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a></td>
<td><span class='small'>".$data['user_srank']."</span></td></tr>";
} else {
echo "<tr class='tbl2'><td><span class='small'><a href='".BASEDIR."profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a></td> <td><span class='small'>".$data['user_srank']."</span></td></tr>";
}
echo "</table>";
closeside();
Redagavo marqs· 2011 Vas. 4 00:02:09