Use PHP to query the database and echo out the results in while loop with formatting tags within the while loop. Example:
<BLOCKQUOTE><font size="1"face="Geneva, Verdana, Arial">code:</font><HR><pre><font size=1 face=courier>
$query = <font color = red>"SELECT username FROM users"</font>;
$result = mysql_query($query);
while($query_data = mysql_fetch_row($result)) {
$regusers = mysql_result($result,$i,<font color = red>"username"</font>);
echo <font color = red>"$regusers"</font>;
}
</font>[/code]
This will query a table named users and get all the usernames. It will then go through the results and print each username. I know that there's a more efficient way to do it, but that's how I do it. As for doing this in DW, I have no idea.