5
Ok, I'll just outline the method.
In your .php file, put the items you want to display into an array, doing a database query if necessary.
So you might wind up with:
$data[0]['username'] = 'joe';
$data[1]['username'] = 'moe';
$data[2]['username'] = 'reginald';
Assign the array to a Smarty template variable:
$xoopsTpl->assign('usernames', $data);
Then in your .html file (Smarty template), display the array contents with a foreach or section loop:
<{foreach from=$usernames item='name'}>
<{$name.username}> <br />
<{/foreach}>
You can make it prettier by adding labels, tabulation, etc.