Ver Mensaje Individual
  #2 (permalink)  
Antiguo 17/04/2009, 21:26
Avatar de By_George
By_George
 
Fecha de Ingreso: abril-2009
Ubicación: localhost
Mensajes: 629
Antigüedad: 15 años
Puntos: 19
Respuesta: Generar tablas dinamicas con datos de la BD?

checalo asi

<table>
<tr>
Código PHP:
$cont=1;
while(
$row=mysql_fetch_array($query))
{
   echo 
"<td>";
   echo 
$row["dato a mostrar"];
   echo 
"</td>";
   
   if(
$cont==5)
   {
   echo 
"</tr>";
   echo 
"<tr>";
   
$cont=1;
   }
   else
   {
   
$cont=$cont+1;
   }

</tr>
</table>