There are alot of variables including what type of db you are using, how many rows you want to print and so on. Anyway, here is some code I use on my admin page to list all of the links and give the option to delete them. Maybe you can decipher some of it enough to help you,
PHP Code:
for( $i=0; $i<$num_links; $i++ )
{
$link_info = mysql_fetch_array($result);
$cat = $link_info['category'];
$cat_query = "SELECT * FROM link_categories WHERE ref='$cat'";
$cat_result = mysql_query($cat_query, $db);
$cat_info = mysql_fetch_array($cat_result);
?>
<tr width="85%">
<td width="55%">
<h6><a href="<? echo $link_info['href']; ?>"><? echo $link_info['name']; ?></a></h6>
</td>
<td width="25%">
<h6><? echo $cat_info['name']; ?></h6>
</td>
<td width="20%">
<h6 align="center"><a href="index.php?page=admin&function=delete_link&ref=<? echo $link_info['ref']; ?>&block=links_ad">delete</a></h6>
</td>
</tr>
<?
}
If you only wanted to print a set number of rows, just change the for loop. You could easily add a form around the code and have the checkbox send the id of the row that you are requesting info for.
Good luck.