Ver Mensaje Individual
  #2 (permalink)  
Antiguo 25/05/2006, 04:14
Koden
 
Fecha de Ingreso: marzo-2005
Mensajes: 197
Antigüedad: 19 años, 1 mes
Puntos: 1
Yo uso esto:

Código PHP:
<?php
  $a 
"SELECT ...";
  
$b mysql_query ($a,$dbh) or die ('Error' mysql_error() . '<br>');
?>
<table>
  <?php

    
for ($p 1$c mysql_fetch_array ($b); $p++)
    {
      
$rst = ($p 3);
            
      if (
$rst == 1)
        echo 
"<tr>";
  
?>
  <td><table><tr><td><!-- Aquí va el contenido --></td></tr></table></td>
  <?php
    
if ($rst == 0)
      echo 
"</tr><tr height=\"2\"><td>&nbsp;</td></tr>";
    }

    if (
$rst <> 0)
    {
      
$cr $rst;

      for (
$k 0$k $cr$k++)
        echo 
"<td width=\"33%\">&nbsp;</td>";

      echo 
"</tr>";
    }
  
?>
</table>
Espero que te sea de ayuda.

Un saludo.