Habe das in meine include/includes/func/profilefields.php
function last5posts ($uid) {
global $allgAr;
$sql = db_query("SELECT a.id, a.tid, a.txt, a.time, b.name, b.rep FROM prefix_posts a LEFT JOIN prefix_topics b ON a.tid = b.id WHERE a.erstid = $uid ORDER BY a.id DESC LIMIT 5");
$content = '<table class="border" cellspacing="1" cellpadding="1" border="0" width="95%">';
while ($r = db_fetch_object($sql)) {
$content .= '<tr class="Chead"><td>Im Thema :<a href="?forum-showposts-'.$r->tid.'-p'.(ceil(($r->rep + 1)/$allgAr['Fpanz'])).'#'.$r->id.'">'.$r->name.'</a></td><td>'.date('d.m.Y H:m:i',$r->time).'</td></tr>';
$content .= '<tr class="Cmite"><td colspan="2">'.bbcode($r->txt).'</td></tr>';
}
$content .= '</table>';
return $content;
}
Aber ich weiß einfach net weiter??
Obwohl hier alles steht kriege ich es net gebacken.
mairu.ilch.net/index.php?forum-showposts-112
Ich wollte es so machen, das ich nicht extra was in der Datenbank eingeben muß.




danke schön.
