|

';
// the image is listed in a table
// here we specify how many columns
// we want to show on each row
$colsPerRow = 4;
// width of each column in percent
$colWidth = (int)(100/$colsPerRow);
$i = 0;
while ($row = mysql_fetch_assoc($result)) {
if ($i % $colsPerRow == 0) {
// start a new row
echo ' |