aun sigue.. lo modifico y modifico y me lista vertical... no se si sera algun error en la forma d llemar las tablas o las celdas dentro del echo sera q hay alguna manera diferente???
Código PHP:
<?php include('conect.php');
// Variables de Configuración -----------------------------------
// Define el numero de Filas
$n_filas=3;
//***************************************************************
@$cat=$_REQUEST['id'];
//$cat=8;
$fotos = array();
$sql="SELECT * FROM productos ORDER BY id ASC";
mysql_select_db ('connect');
$sql_exec=mysql_query($sql);
$tottal=113;
// ------------------------------------------------------------------------------------------------------------------
$vert=$tottal/$n_filas;
$vert=round($vert);
?>
<link href="css/estilo.css" rel="stylesheet" type="text/css" />
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="100%" height="130" align="center"><table width="100%" height="130" border="0" align="center" cellpadding="0" cellspacing="4">
<table width="224" border="0" cellspacing="0" cellpadding="0">
<?php
$a=0;// Colocando el contador horizontal en 0
$i=1;// Colocando el contador vertical en 0
$w=0;//Colocando un contador para el mensaje de "No hay articulos en esta acategoria"
while($row=mysql_fetch_assoc($sql_exec)){
$w=w+1;
if ($a==0){
echo '<tr>';
}
$a=$a+1;
$fotos[$i.'-'.$a] = $row['imgprinc'];
echo "<td height='214' width='224' colspan='2' bgcolor='#000000'>prueba</td>
</tr>
<tr>
<td width='180' height='78' bgcolor='#E8E7C1'>".$row['titulo']."</td>
<td width='44'>".$row['imgprinc']."</td>
</tr>
<tr>
<td height='96' colspan='2'>hola</td>
</tr>
";
$r=$a;// contador remanente para listar imagenes sin exceso
if ($a >= $n_filas) {
$a=0;// reiniciando el contador horizontal
$i=$i+1;// aumentando el contador vertical
echo '</table>';
}
if (empty($row)) {
echo"<table width='0' border='0' align='center' cellpadding='0' cellspacing='0'>
<tr>
<td width='257'><div align='center'>No hay articulos en esta categoria </div></td>
</tr>
</table>
";
break 1;}
}
echo '</td>';
?>
</table>
<p> </p></td>
</tr>
</table>