Ver Mensaje Individual
  #3 (permalink)  
Antiguo 16/06/2005, 19:01
Avatar de GUNIRAN
GUNIRAN
 
Fecha de Ingreso: octubre-2003
Ubicación: Rosario, Santa Fe, Argent
Mensajes: 65
Antigüedad: 20 años, 6 meses
Puntos: 0
A ver si entiendo lo que pides:


En el while o foreach según como lo tengas:

Código PHP:
<table>
  <tr>
    <?php
    $i
=1;
    while (
$registros tu_consulta)
    {
    
?>
      <td><?= $registros['campo'?></td>
      <?php
      
if ($i == 0)
      {
        echo 
"</tr><tr>";
      }
      
$i++;
    }
    
?>
  </tr>
</table>
va creando celdas linealmente, cuando se crean 3 se forma una nueva fila.
__________________
Saludos,
Matías Hernán Piuma - Desarrollador Web
Programador PHP Freelance, especialidad: PHP / MySQL / XHTML / CSS
Rosario, Argentina