Okay..just reread your question. Assuming you've got a php page that can read the binary data out of the database and create the nec. headers for an image...
$query = mysql_query("select id from pictures");
while (list($id) = mysql_fetch_row($query))
{
echo "<img src=\"your_pic_page.php?id=$id\">
}
Apply the nec. formatting of course, tables or whatever...but hopefully that gives you an idea.
---John Holmes...