hay una faq al respecto creo pero basicamente esto tenes q haceR:
pone :
Código PHP:
$columas = 3;
<table style="border:1px solid #4A4A4A; background: #EBE5CB; width:100%">
<tr>
<?
for ($i = 1 ; $row=mysql_fetch_array($result) ; $i++){
?>
<td><a href="<? echo $row["link"]; ?>" target="_blank"><img alt="<? echo $row["nombre"]; ?>" width='150px' heigth'112px' src="<? echo $row["link"];?>"></a></td>
<?
if($i%$columas ==0) echo '</tr><tr>';
}
?>
</tr>
</table>