Código PHP:
echo '<table width="300" border="0"><tr>';
echo '<td colspan="3" align="center"><h2>Camarón de la isla</h2></td></tr><tr>';
$max = 3; // Numero maximo de columnas por fila
$count = 0; // Contador para el maximo de columnas
while($datos=mysql_fetch_array($con))
{
if ($count<$max)
{
echo "<td align=\"center\">";
echo "<a href=\"videos.php?video_id=$datos[url]&title=$datos[titulo]\">";
echo "<img src=\"$datos[imagen]\" width=\"130\" height=\"97\" border=\"0\"></a><br>";
echo "<a class=\"link\" href=\"videos.php?video_id=$datos[url]&title=$datos[titulo]\">";
echo "$datos[titulo]</a></td>";
$count++;
}
else
{
echo "</tr><tr>"; // Se cierra una fila y se comienza la nueva
$count = 0; // Le damos un reset al contador
}
}
echo '</table>';