I can't get results to echo in a separate part of the file
<p>I want to echo the results in a different part of the page and not just in the header. How do I do this? What if I want to 6 items to be echoed separately?</p>

<pre><code>&lt;?php 

    require_once 'facebook.php';
    $appapikey = 'CENSORED';
    $appsecret = 'CENSORED';
    $facebook  = new Facebook($appapikey, $appsecret);
    $user_id  = $facebook-&gt;require_login();
    $user   = $user_id;
    $i = 0;
     $fql = 'SELECT uid FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1='.$user.')';
     $_friends = $facebook-&gt;api_client-&gt;fql_query($fql); // Extract the user ID's returned in the FQL request into a new array. 
     $friends = array(); 
     if (is_array($_friends) &amp;&amp; count($_friends)) 
     {
      foreach ($_friends as $friend) 
      { 
       $i++;
       $friends[] = $friend['uid'];
       if ($i&lt;=6) echo $friend['uid']."@[,:m]";
      } 
     }
    ?&gt;


    &lt;br&gt;&lt;br&gt;HELLO 
</code></pre>
