Hi..I'm making an app that loads external html in a webbrowser after adding some value to it from a database. But how do i add the values.

the html will be somewhat like this


HTML Code:
<html>
<head>
<body>
<div id="wrapper">
  <div id="heading">@</div>
  <div id="content"><span class="line">$</span> </div>
</div>
</body>
</html>

I have to put the heading from Database replacing '@' sign
and content retrieved from db replcaing '$' sign.

There is one more important thing...the second div that is
Code:
<div id="content"><span class="line">$</span> </div>
will be in a loop... so i will have to put it n number of time depending on the loop...

How can i do that?!!