Código HTML de la tabla completa
Código:
Códio HTML de la tabla inicial<table cellSpacing="0" cellPadding="0" width="80%" align="center" border="0"> <tr> <td width="31" height="43"><big><img height="43" src="tlc.jpg" width="31"></big></td> <td background="tbg.jpg"></td> <td width="31" height="43"><big><img height="43" src="trc.jpg" width="31"></big></td> </tr> <tr> <td vAlign="bottom" align="right" background="lbg.jpg"></td> <td align="center" bgcolor="#FFFFFF"><table border="0" cellpadding="5" cellspacing="0" width="100%"> <tr> <td width="100%" valign="top" align="center" colspan="4"></td> </tr> <tr> <td width="25%" valign="top" align="center"><small><strong><a href="LINK" target="_blank">NOMBRE</a></strong></small><br> <img src="IMAGEN" width="170" height="120"></td> <td width="25%" valign="top" align="center"><small><strong><a href="" target="_blank"></a></strong></small><br> <img src="" width="170" height="120"></td> <td width="25%" valign="top" align="center"><small><strong><a href="" target="_blank"></a></strong></small><br> <img src=".jpg" width="170" height="120"></td> <td width="25%" valign="top" align="center"><small><strong><a href="" target="_blank"></a></strong></small><br> <img src="" width="170" height="120"></td> </tr> <tr> <td width="25%" valign="top" align="center"><small><strong><a href="" target="_blank"></a></strong></small><br> <img src="" width="170" height="120"></td> <td width="25%" valign="top" align="center"><small><strong><a href="" target="_blank"></a></strong></small><br> <img src="" width="170" height="120"></td> <td width="25%" valign="top" align="center"><small><strong><a href="" target="_blank"></a></strong></small><br> <img src=".jpg" width="170" height="120"></td> <td width="25%" valign="top" align="center"><small><strong><a href="" target="_blank"> </a></strong></small><br> <img src="" width="170" height="120"></td> </tr> <tr> <td width="25%" valign="top" align="center"><small><strong><a href="" target="_blank"></a></strong></small><br> <img src="" width="170" height="120"></td> <td width="25%" valign="top" align="center"><small><strong><a href="" target="_blank"></a></strong></small><br> <img src="" width="170" height="120"></td> <td width="25%" valign="top" align="center"><small><strong><a href="" target="_blank"></a></strong></small><br> <img src=".jpg" width="170" height="120"></td> <td width="25%" valign="top" align="center"><small><strong><a href="" target="_blank"> </a></strong></small><br> <img src="" width="170" height="120"></td> </tr> <tr> <td width="25%" valign="top" align="center"><small><strong><a href="" target="_blank"></a></strong></small><br> <img src="" width="170" height="120"></td> <td width="25%" valign="top" align="center"><small><strong><a href="" target="_blank"></a></strong></small><br> <img src="" width="170" height="120"></td> <td width="25%" valign="top" align="center"><small><strong><a href="" target="_blank"></a></strong></small><br> <img src=".jpg" width="170" height="120"></td> <td width="25%" valign="top" align="center"><small><strong><a href="" target="_blank"> </a></strong></small><br> <img src="" width="170" height="120"></td> </tr> <tr> <td width="25%" valign="top" align="center"><small><strong><a href="" target="_blank"></a></strong></small><br> <img src="" width="170" height="120"></td> <td width="25%" valign="top" align="center"><small><strong><a href="" target="_blank"></a></strong></small><br> <img src="" width="170" height="120"></td> <td width="25%" valign="top" align="center"><small><strong><a href="" target="_blank"></a></strong></small><br> <img src=".jpg" width="170" height="120"></td> <td width="25%" valign="top" align="center"><small><strong><a href="" target="_blank"> </a></strong></small><br> <img src="" width="170" height="120"></td> </tr> <tr> <td width="25%" valign="top" align="center"></td> <td width="25%" valign="top" align="center"></td> <td width="25%" valign="top" align="center"></td> <td width="25%" valign="top" align="center"><strong><small><a href="index_adventure.php">1</a></small></strong></td> </tr> </table> </td> <td vAlign="top" background="rbg.jpg"></td> </tr> <tr> <td width="31" height="29"><big><img height="29" src="blc.jpg" width="31"></big></td> <td background="bbg.jpg"></td> <td width="31" height="29"><big><img height="29" src="brc.jpg" width="31"></big></td> </tr> </table>
Código:
No se como hacerlo, hice 1 script que busca una determinada cadena i reemplaza su contenido en 1 archivo pero aqui no sabria como utilizarlo, supongo que habría que utilizar una especie de variable que se incrementara, i que cada 4 veces se pusiera una nueva fila i en este momento, otra que se incrementara hasta 5, pero no se como aplicarlo. Buscaría en PHP la cadena "<-- TABLA -->" para empezar el código. Gracias <table cellSpacing="0" cellPadding="0" width="80%" align="center" border="0"> <tr> <td width="31" height="43"><big><img height="43" src="tlc.jpg" width="31"></big></td> <td background="tbg.jpg"></td> <td width="31" height="43"><big><img height="43" src="trc.jpg" width="31"></big></td> </tr> <tr> <td vAlign="bottom" align="right" background="lbg.jpg"></td> <td align="center" bgcolor="#FFFFFF"><table border="0" cellpadding="5" cellspacing="0" width="100%"> <tr> <td width="100%" valign="top" align="center" colspan="4"></td> </tr> <tr> <!-- TABLA --> <td width="25%" valign="top" align="center"><small><strong><a href="$LINK" target="_blank">$NOMBRE</a></strong></small><br> <img src="$IMAGEN" width="170" height="120"></td> </tr> <tr> <td width="25%" valign="top" align="center"></td> <td width="25%" valign="top" align="center"></td> <td width="25%" valign="top" align="center"></td> <td width="25%" valign="top" align="center"><strong><small><a href="index_adventure.php">1</a></small></strong></td> </tr> </table> </td> <td vAlign="top" background="rbg.jpg"></td> </tr> <tr> <td width="31" height="29"><big><img height="29" src="blc.jpg" width="31"></big></td> <td background="bbg.jpg"></td> <td width="31" height="29"><big><img height="29" src="brc.jpg" width="31"></big></td> </tr> </table>