View Single Post
  #6  
Old 11-06-2018, 01:42 AM
draugluin's Avatar
draugluin draugluin is offline
Member
 
Join Date: Oct 2011
Location: germany
Posts: 120
Gender: Unknown/Other
Credits: 10,744
draugluin is on a distinguished road
Default

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); 
__________________
Reply With Quote