This is the key to laserlight's code example:
// columns to retrieve and print
$columns = array('ID', 'username');
You can change the $columns array to have as many columns as you need, and the info will be written one line per db entry. I haven't tried, but it should work OK with array('username') to give you a table with each username on a new row.
Blu