Código PHP:
$numcol = 7;
$x=0;
echo '<table>';
while ($row_Recordset2 = mysql_fetch_array($Recordset2)) {
if ($x % $numcol==0){
echo '<tr><td>'.
'<div><table width="66" border="0" cellspacing="0" cellpadding="0"><tr><td>
<a href="#'.$row_Recordset2['mode_id'].'"><img src="catalogo/'.$row_Recordset2['mode_imagen'].'.JPG" alt="'.$row_Recordset2['alt_images'].'" title="'.$row_Recordset2['title_images'].'" width="55" height="44" class="imacata" /></a></td>
</tr>
</table></div>'
.'</td>';
}
elseif ($x % $numcol==$numcol -1)
{
echo '<td>'.
'<div><table width="66" border="0" cellspacing="0" cellpadding="0"><tr><td>
<a href="#'.$row_Recordset2['mode_id'].'"><img src="catalogo/'.$row_Recordset2['mode_imagen'].'.JPG" alt="'.$row_Recordset2['alt_images'].'" title="'.$row_Recordset2['title_images'].'" width="55" height="44" class="imacata" /></a></td>
</tr>
</table></div>'
.'</td>';
}
else {
echo '<td>'.
'<div><table width="66" border="0" cellspacing="0" cellpadding="0"><tr><td>
<a href="#'.$row_Recordset2['mode_id'].'"><img src="catalogo/'.$row_Recordset2['mode_imagen'].'.JPG" alt="'.$row_Recordset2['alt_images'].'" title="'.$row_Recordset2['title_images'].'" width="55" height="44" class="imacata" /></a></td>
</tr>
</table></div>'
.'</td>';
}
$x++;
}
echo '</table>';
Código PHP:
$numcol = 7;
$x=0;
echo '<table>';
while ($row_Recordset2 = mysql_fetch_array($Recordset2)) {
if ($x % $numcol==0){
echo '<tr><td> DATO 1-TITLE </td>';
}
elseif ($x % $numcol==$numcol -1)
{
echo '<td> DATO2- TITLE </td>';
}
else {
echo '<td> DATO3- TITLE </td>';
}
$x++;
}
echo '</table>';
![sonriente](http://static.forosdelweb.com/fdwtheme/images/smilies/smile.png)