Ver Mensaje Individual
  #4 (permalink)  
Antiguo 22/10/2007, 13:53
Avatar de Marvin
Marvin
Colaborador
 
Fecha de Ingreso: febrero-2005
Ubicación: global $Chile->Santiago;
Mensajes: 1.991
Antigüedad: 19 años, 3 meses
Puntos: 81
Re: filas y campos de un tabla

ok... entonces hazlo asi:

Código PHP:
<?php

$num 
30;
$columnas 3;
$filas $num/$columnas;
$html '<table>';
for(
$i=0;$i<$filas;$i++){
    
$html .= '
<tr><!--Fila'
.$i.'-->';
    for(
$j=0;$j<$columnas;$j++){
        
$html .= '
    <td>'
.($i+$tot+$j+1).'</td>';
    }
    
$tot $j $tot 1;
    
$html .= '
</tr>'
;
}
$html.= '
</table>'
;

print 
$html;
?>
__________________
El que dice "Solo sé que nada sé", esta asumiendo que sabe algo.
Lea las FAQ's!