You really need to steer clear of using tables if possible.
I would display it as a unordered list <ul> and use css to style it similar to a table.
Below is a rough and ready bit of code that will display your photos as a 3 column grid 650px wide and will display as many photos as the recordset contains using the do while loop. Adjust to your own needs.
Code:
// establish a connection
// query your database
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
ul {
list-style:none;
width: 650px;
}
li{float:left;
border:1px solid black;
}
li img {
width:180px;
height:135px;
padding:10px;
}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body><ul><?php do {?>
<li><img src="<?php echo $row['imageURL'] ;
?>" /></li>
<?php }
while($row = mysql_fetch_assoc($result));?></ul>
</body>
</html>
<?php
mysql_free_result($result);
?>
|