Parašė edis2· 2009 Bir. 16 19:06:43
#2
openside("Top Forumo Nariai");
$sql=dbquery("SELECT * FROM ".$db_prefix."users ORDER BY 'user_posts' DESC LIMIT 0, 5");
echo "<table width='auto' cellspacing='0' cellpadding='0'>";
$i=0;
while ($data=dbarray($sql)) {
echo "<tr>
<td align='left'>
<a href='".BASEDIR."profile.php?lookup=".$data ['user_id']."'>";
echo"</a></td>
<td align='left'><a href='".BASEDIR."profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a> - ".$data['user_posts']." Pranesimai</td></tr>";
$i++;
}
echo "</table>";
closeside();
Paieška naudokis :[