Ver Mensaje Individual
  #8 (permalink)  
Antiguo 20/04/2009, 12:54
jawir
 
Fecha de Ingreso: marzo-2009
Mensajes: 221
Antigüedad: 15 años, 1 mes
Puntos: 0
Respuesta: Mostrar consulta en area de texto

Creo que he hecho como tu me has dixo pero no me sale la barra de scroll en la tabla

Código PHP:

<?php

    
//echo "<table border = '3'> \n";
    
echo "<tr> \n";
    echo 
"<td><b>DNI</b></td> \n";
    echo 
"<td><b>Nombre</b></td> \n";
    echo 
"<td><b>Apellidos</b></td> \n";
    echo 
"<td><b>Telefono</b></td> \n";

    echo 
"</tr> \n";

    do {
    

          echo 
"<tr> \n";
        
        echo 
"<td>".$row["DNI"]."</td> \n";

        echo 
"<td>".$row["nombre"]."</td>\n";

        echo 
"<td>".$row["apellidos"]."</td> \n";

        echo 
"<td>".$row["telefono"]."</td>\n";
    
        echo 
"</tr> \n";
    
    } while (
$row mysql_fetch_array($result));
?>
</div>
</table>

<?php


} else {

echo 
"¡ La base de datos está vacia !";

}

?>

Código HTML:
<style type="text/css">
<!--
#Layer1 {
	position:absolute;
	width:410px;
	height:204px;
	z-index:598;
	left: 403px;
	top: 224px;
}
#Layer2 {
	position:absolute;
	width:403px;
	height:291px;
	z-index:598;
	left: 491px;
	top: 210px;
}
.Estilo2 {font-size: 15px}

#capa {
max-height: 200px;
overflow: auto;
}


-->
</style>