Hmmm.... this works for me. try it...
(profileview.php)
you just have to change the names and the path.
PHP Code:
// The new tab
$tabs->starttab(5);
$document->add(new Comment("Throphies!<br> "));
$throphy = $mysidia->db->select("inventory", array("itemname"), "category ='throphy' and owner='{$mysidia->user->username}' ");
while($row = $throphy->fetchObject()) {
$itemname = $row->itemname;
$document->add(new Comment("<img src='/pics/{$itemname}.png'>" ));
}
$tabs->endtab(5);