viser de 5 Nyeste Brugere
Kode $result=dbquery("SELECT * FROM ".$db_prefix."users ORDER BY user_joined DESC LIMIT 05");
@opentable('Nyeste Brugere');
echo ' <table width="100%" cellspacing="0" cellpadding="0">';
while ($data = dbarray($result)) {
echo "<tr><td>";
if (!$data['user_avatar']) { $data['user_avatar'] = 'noav.gif'; }
echo "<a href='profile.php?lookup=".$data['user_id']."'><img height='15' width='15' border='0' src='".BASEDIR."images/avatars/".$data['user_avatar']."'></a></td>
<td><a href='profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a>";
echo "</td></tr>";
}
echo '</table>';
@closetable();
|