Ver Mensaje Individual
  #9 (permalink)  
Antiguo 17/04/2006, 12:50
robandrox
 
Fecha de Ingreso: abril-2005
Mensajes: 287
Antigüedad: 19 años
Puntos: 0
Código PHP:
echo "<table>" 
while( $row mysql_fetch_array ($result) ){  
 echo 
"<tr>"  
 
foreach($row as $valor)  
 {  
    echo 
"<td>$valor</td>"

 
}  
 echo 
"</tr>"  

}  
echo 
"</table>" 

Asi te da tantas columnas como tenga la tabla