Ver Mensaje Individual
  #4 (permalink)  
Antiguo 25/04/2011, 14:07
Avatar de stramin
stramin
 
Fecha de Ingreso: marzo-2008
Ubicación: Cubil felino
Mensajes: 1.652
Antigüedad: 16 años, 1 mes
Puntos: 336
Respuesta: Problema con columnas en php, mysql

intenta así

Código PHP:
Ver original
  1. $result = mysql_query("SELECT * FROM tabla WHERE DATE(start_time) < NOW()") or die(mysql_error());
  2. $sw = 0;
  3. <table border=0 cellspacing=0 cellpadding=1>
  4. while($row = mysql_fetch_assoc($result)) {
  5.        echo "<tr><td>";
  6.        echo "contenido de la tabla";
  7.        echo "</td>";
  8.        if($row = mysql_fetch_assoc($result)){
  9.           echo "<td>";
  10.           echo "contenido de la tabla";
  11.           echo "</td>";
  12.        }else{
  13.           echo "<td>&nbsp;</td>";
  14.        }
  15.        echo "</tr>";
  16. }
  17. echo "</table>";