Hi all . i wonder how i can creating a dynamic form by pulling its data such as songid,songname,album from mysql db and creating a form like below. For each record in db one row in the form.I wrote part of the code but i do not know how to print the form with right information on it.The bold parts are the dynamic values and assume all data are in one table.Could any expert help me wth this part.Thanks
dynamic form code:
part of the code that for form .The bold part are pulled from db.

dynamic form code:
Code:
<?
$username="username";
$password="password";
$database="your_database";
mysql_connect(localhost,$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query = "select songno,songname,songalbum from musictable)";
mysql_query($query);
mysql_close();
?>
part of the code that for form .The bold part are pulled from db.
Code:
<tr>
<td bgcolor="#C0C0C0"><p align="center"><b>1</b></p>
</td>
<td bgcolor="#C0C0C0"><input
type="checkbox" name="Id" value="[B]1[/B]"></td>
<td bgcolor="#C0C0C0"><a
href="javascript:newWindow('./player/ram4.php?sid=[B]1[/B]')"><img
src="images/Speaker.gif"
alt="Listen to this Song" border="0"
width="16" height="16"
longdesc="Listen to this Song"></a> [B]Atash[/B]
</td>
<td bgcolor="#C0C0C0">[B]Atish[/B]</td>
<td bgcolor="#C0C0C0"><a
href="javascript:newWindow('RateSong.asp?SongID=[B]1[/B]')"><img
src="images/RatIt.gif"
alt="Rate This Song" border="0"
width="100" height="22"
longdesc="Rate This Song"></a></td>
<td align="center" bgcolor="#C0C0C0">0 </td>
<td bgcolor="#C0C0C0">coming Soon <!-- <a href="../site.php?songID=[B]1[/B]&Song=[B]Atash[/B]">Read </a>| <a href="../Members/WriteLyrics.php?SongId=[B]1[/B]&Song=[B]Atash[/B]">Write</a> --> </td>