04.02.2007, 22:14
Versuchs mal so:
Wofür ist eigentlich diese Zeile? Ist die nicht überflüssig?
PHP-Code:
$topposter = "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n";
$query = $db->query("SELECT username, avatar, postnum, uid FROM ".TABLE_PREFIX."users ORDER BY postnum DESC LIMIT 0,5");
while ($user = $db->fetch_array($query))
{
if(empty($user['avatar']))
{
$user['avatar'] = "<img src=\"images/avatars/ersatzavatar.gif\" border=\"0\" alt=\"\" />";
}
$userprofile .= $user['uid'];
$topposter .= "<tr><td align=center><img src=\"".$user['avatar']."\"></td></tr>\n";
$topposter .= "<tr><td align=center><a href=\"member.php?action=profile&uid=".$user['uid']."\">".$user['username']."</a> (".$user['postnum'].")<br /><br /></td></tr>\n";
}
$topposter .= "</table>\n";
PHP-Code:
$userprofile .= $user['uid'];