Gracias por tu ayuda, me has desbloqueado la mente...
Nuevo dia, nuevas ideas...
Lo he solucionado asi:
Código PHP:
Ver original$contador = 1;
$marca = $row[marca];
$modelo =$row[modelo];
$ano =$row[ano];
$precio =$row[precio];
$foto = "<img src=\"$pathfoto/$row[path]\" width=\"110\" >";
if ($contador < 5){
print "<div id=\"Divcotxe$contador\"><table width=\"129\" height=\"231\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
<td width=\"10\"> </td>
<td width=\"113\" height=\"51\"> </td>
<td width=\"10\"> </td>
</tr>
<tr>
<td> </td>
<td height=\"86\" align=\"center\" valign=\"middle\"> $foto </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td height=\"20\" class=\"txindex_trans\"> $marca </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td height=\"31\" valign=\"top\" class=\"txindex_trans\"> $modelo </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td height=\"24\" class=\"precios\"> $precio </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
</div>";
$contador ++;
} else{}}
?>
Salu2