Hello.
I created a simple gallery to my website.
The problem is that i would like to make a thumbnail order different, I would like to make like this, each two images dysplaied i create a new line and display more two images, like this image:

The code I have done is below:
<style type="text/css">
<!--
.style4 {color: #646464}
.style5 {color: #8C8C8C}
.style8 {color: #B70000}
.borderline {border: #DDDDDD 1px solid;}
.style10 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #333333;
}
-->
</style>
<?
include('fbx_Settings.php');
$link = mysql_connect("$DBServer","$DBUser", "$DBPass");
mysql_select_db("$DSN");
$barcouId = $_REQUEST['barcouId'];
$fotoId = $_REQUEST['fotoId'];
$sql_f = mysql_query("SELECT * FROM scm_galerias WHERE fotoId='$fotoId' AND barcouId='$barcouId'", $link)or die("Morreu ao pegar as fotos do barco!");
$imagens = mysql_num_rows($sql_f);
$img = mysql_fetch_array($sql_f);
?>
<table id="Table_01" width="495" height="393" border="0" cellpadding="0" cellspacing="0">
<tr valign="top">
<td>
<table width="100%" border="0" cellpadding="1" cellspacing="0">
<tr>
<td>
<?
if ($imagens) {
?>
<table width="100%" border="0" cellpadding="2" cellspacing="0">
<tr>
<td>
<table width="100%" class="borderline" border="0" cellpadding="2" cellspacing="0">
<tr>
<? for ($i=0;$i<$imagens;$i++) { ?>
<td>
<a href="dsp_imagem_grande.php?fotoId=<?echo $img['fotoId'];?>&barcouId=<?echo $img['barcouId'];?>&fotoPath=<?echo $img['fotoPath'];?>&fotoNome=<?echo $img['fotoNome'];?>" target="zoom"><img src="admin/b_usados/<?echo $img['fotoPath'];?>/<?echo $img['fotoNome'];?>" border="0" width="60" height="45"></a>
</td>
<? } ?>
</tr>
</table>
</td>
</tr>
</table>
<?
}
?>
</td>
</tr>
<tr valign="bottom">
<td><img src="images/poup_galeria_08.gif" /> </td>
</tr>
<tr>
<td><img src="images/poup_galeria_10.gif" /></td>
</tr>
</table></td>
<td valign="top">
<table width="100%" height="400" border="0" cellpadding="0" cellspacing="0">
<tr valign="top">
<td>
<IFRAME name="zoom" src="dsp_imagem_grande.php" frameBorder="0" width=441 height=400 scrolling=no></IFRAME></td></tr>
</table>
</td>
</tr>
</table>
</div></td>
</tr>
</table></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
Thanks for the help, I have no other ideia about it.
Att, Rodrigo Ferrari.