i need to loop the contents of a database in the following way:
<form method="post" action="news.php">
<table>
<tr>
<td width="50%">Title:</td>
<td width="50%">Edit:</td>
</tr>
<tr>
<td width="50%">Updates Done</td>
<td width="50%"><input type="radio" value="<?php $id ?>" name="edit"></td>
</tr>
<tr>
<td width="100%" colspan="2"><input type="submit" value="Edit" name="submit"></td>
</tr>
</table>
</form>
and all the contents of the database (but only the titles of them) so how do i loop it in the table?
the while thing is:
$result = mysql_query("select * from news");
while($r=mysql_fetch_array($result))