Ver Mensaje Individual
  #8 (permalink)  
Antiguo 18/09/2008, 15:40
kireta
 
Fecha de Ingreso: agosto-2008
Mensajes: 54
Antigüedad: 16 años, 5 meses
Puntos: 0
Respuesta: Verificacion de codigo

Creo que basandome en el que me diste lo hice vertical pero igual me sale error

Como lo cambie:
Código:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<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>
    <th>Apellido</th>
    <th>:</th>
    <th>&nbsp;<? echo $row["apellido"]; ?>&nbsp; </th>
    <th>Nombre</th>
	<th>:</th>
	<th>&nbsp;<? echo $row["nombre"]; ?>&nbsp; </th>
  </tr>
  <tr>
    <th>Cedula</th>
    <th>:</th>
    <td>&nbsp;<? echo $row["cedula"]; ?>&nbsp;</td>
	<th>Codigo</th>
	<th>:</th>
	<td>&nbsp;<? echo $row["codigo"]; ?>&nbsp;</td>
  </tr>
<?php
 } 
   mysql_free_result($result); 
   mysql_close($link); 
?> 
</table>
</body>
</html>