Ver Mensaje Individual
  #9 (permalink)  
Antiguo 18/09/2008, 16:08
Avatar de Taldreakan
Taldreakan
 
Fecha de Ingreso: julio-2008
Mensajes: 128
Antigüedad: 15 años, 9 meses
Puntos: 2
Respuesta: Verificacion de codigo

Este codigo lo probe y me esta mostrando los datos respetando el formato que manejas:

Código PHP:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento sin t&iacute;tulo</title>
</head>

<body>

<?php
include("conex.php"); 
$link=Conectarse();
$result mysql_query("select apellido,nombre,cedula,codigo from estudiante"$link);
?>
<!-- Aqui el resultado de la consulta -->
<table border="1">
  <?php
    
while($row mysql_fetch_array($result)) 
      {
  
?>
  <tr>
    <td>Apellido</td>
    <td>: </td>
    <td>&nbsp;<? echo $row["apellido"]; ?>&nbsp; </td>
    <td>Nombre</td>
    <td>: </td>
    <td>&nbsp;<? echo $row["nombre"]; ?>&nbsp; </td>
  </tr>
  <tr>
    <td>Cedula</td>
    <td>: </td>
    <td>&nbsp;<? echo $row["cedula"]; ?>&nbsp;</td>
    <td>Codigo</td>
    <td>: </td>
    <td>&nbsp;<? echo $row["codigo"]; ?>&nbsp;</td>
  </tr>
<?php
     

   
mysql_free_result($result); 
   
mysql_close($link); 
?> 
</table>
</body>
</html>