Here is what i wanna do with this code

I use a CSM called seditio neocrome.net

In forum.post.inc.php I would like to fetch armory data but i only know how to do it by printing in one name at the time, and im quite new in the php scene, so my knowledge is minor but testing alot and put a few hours that I have to learn more.

PHP Code:
//fetches an xml document using the cURL library
    
function fetchXML($url)
    {
        
//initialize library
        
$ch curl_init();

        
//used to make us look like a browser
        
$useragent="Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1";

        
//set the url
        
curl_setopt ($chCURLOPT_URL$url);

        
//set that we want to wait for a response
        
curl_setopt ($chCURLOPT_RETURNTRANSFER1);

        
//make us look like a web browser
        
curl_setopt ($chCURLOPT_USERAGENT$useragent);

        
//get data
        
$data curl_exec($ch);

        
//clean up
        
curl_close($ch);

        
///return xml data
        
return $data;
    }

    
define("USE_CURL"true);

    
//set character and realm info
    
$realm "Frostwhisper";
    
$name "Steelrend"
    
$url "http://eu.wowarmory.com/character-sheet.xml?r=" $realm "&n=" $name ;

    
//get xml doc with character info
    
$data fetchXML($url);

    
//create a SimpleXML object to parse the xml
    
$char_xml = new SimpleXmlElement($data);


    
//Print basic character info
    
echo $char_xml->characterInfo->character->attributes()->name "</br>";
    echo 
$char_xml->characterInfo->character->attributes()->class "</br>";
    echo 
$char_xml->characterInfo->character->attributes()->faction "</br>";
    echo 
$char_xml->characterInfo->character->attributes()->level "</br>";
    echo 
$char_xml->characterInfo->character->attributes()->points "</br>";
    echo 
$char_xml->characterInfo->character->attributes()->suffix "</br>"
Now how my code looks like in seditio engine.

PHP Code:
$t-> assign(array(
        
"FORUMS_POSTS_ROW_TITLE" => $char_xml->characterInfo->character->attributes()->suffix,
        
"FORUMS_POSTS_ROW_ACHIV" => $char_xml->characterInfo->character->attributes()->points
Now i just get data from Frostwhisper/steelrend. All my users use there armory name in forums so it should just be to get username from db.

Here is the postername code

"FORUMS_POSTS_ROW_POSTERNAME" => sed_build_user($row['fp_posterid'], sed_cc($row['fp_postername'])),

Any idé how to get poster_row and then print out the username data with the relative fetch thingy?, as I said my knowledge is just basic at this moment.

If I need to save data in DB I could prob mange it, with some help ofcourse.

I could post more of the seditio engine code if you would like.