Ver Mensaje Individual
  #5 (permalink)  
Antiguo 09/01/2013, 12:22
xoceunder
 
Fecha de Ingreso: junio-2012
Ubicación: En el Mundo
Mensajes: 759
Antigüedad: 11 años, 10 meses
Puntos: 10
Respuesta: duda en poder hacer que continue en otro tr en la tabla

muchas gracias amigo pero tengo esto del aporte que me conseguiste

Código PHP:
Ver original
  1. <?php
  2. $columnas = 5;
  3. $filas = 4; // OK?
  4.  
  5. // luego, para facilitar esto usaremos dos for() anidados
  6.  
  7.  
  8. for ($x = 0; $x < $filas; ++$x)
  9. {
  10.  
  11.   // "vector" X
  12.   echo '<tr>';
  13.  
  14.   for ($y = 0; $y < $columnas; ++$y)
  15.   {
  16.      echo '<td>';
  17.     while ($row_list_movie_center = mysql_fetch_assoc($list_movie_center)) {
  18.     // rutinas....
  19.     echo "<td width=\"25%\" valign=\"top\" bgcolor=\"#ffffff\" align=\"center\" onmouseout=\"this.style.background='#ffffff'\" onmouseover=\"this.style.background='#F5F5F5'\" style=\"background: none repeat scroll 0% 0% rgb(255, 255, 255);\">
  20.                                
  21.                                     <table cellspacing=\"0\" cellpadding=\"0\" bordercolor=\"#C0C0C0\" border=\"1\" bgcolor=\"#EFEFEF\" style=\"border-collapse: collapse\" id=\"table41\">
  22.                                         <tr>
  23.                                             <td><a href=\"Bad+Taste-493.htm\"><img width=\"100\" vspace=\"2\" hspace=\"2\" border=\"0\" style=\"border: 1px solid #C0C0C0\" src=\"images/film/".$row_list_movie_center["image"]."\"></a></td>
  24.                                         </tr>
  25.                                     </table>
  26.                                     <p style=\"margin-top: 5px; margin-bottom: 0\"> <b>".$row_list_movie_center["title"]."</b></p>
  27.                                     <p style=\"margin-top: 0; margin-bottom: 0\">
  28.                                     <a href=\"movie-type-2.htm\"><font color=\"#800000\">
  29.                                     Category</font></a>: <a href=\"movie-category-14.htm\"><font color=\"#800000\">SCI-FI</font></a></p>
  30.                                     <p style=\"margin-top: 0; margin-bottom: 6px\">
  31.                                     # Views: ".$row_list_movie_center["view"]."
  32.                                 </p></td>";
  33.    
  34.     }
  35.      echo '</td>';
  36.   }
  37.   // cerramos X
  38.   echo '</tr>';
  39. }
  40. ?>

pero solo muestra y peliculas cuando son 40 peliculas a mostrar