Ver Mensaje Individual
  #11 (permalink)  
Antiguo 11/07/2008, 11:12
Avatar de T4ke0veR
T4ke0veR
 
Fecha de Ingreso: agosto-2007
Ubicación: Quito - Ecuador
Mensajes: 1.720
Antigüedad: 16 años, 8 meses
Puntos: 28
Respuesta: Listar horizontal

antes lo hacia con un solo item y me funcionaba... lo hacia asi
Código PHP:
<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">
        
        <?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['imagen'];
                
                echo 
"<td height='100' width='100' border='0' class='marronlink' ><a href='ficha_prod.php?id=".$row['id']."'><img src='imgprod/".$row['imagen']."' width='90 height='90' border='0'/></a><br>";echo "<p class='marronlink'><a href='ficha_prod.php?id=".$row['id']."'>".$row['nombre']. "</a></p><br><br>";
            
                
$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 '</tr>';
                    } 
            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>';
        
?>
fijense q solo dibujo un td en este codigo.. pero en el q estoy desarrollando ahorita no me sale!!!
__________________
Diseño gráfico, Web, imagen corporativa, publicidad ...