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í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> <? echo $row["apellido"]; ?> </th>
<th>Nombre</th>
<th>:</th>
<th> <? echo $row["nombre"]; ?> </th>
</tr>
<tr>
<th>Cedula</th>
<th>:</th>
<td> <? echo $row["cedula"]; ?> </td>
<th>Codigo</th>
<th>:</th>
<td> <? echo $row["codigo"]; ?> </td>
</tr>
<?php
}
mysql_free_result($result);
mysql_close($link);
?>
</table>
</body>
</html>
![lloron](http://static.forosdelweb.com/fdwtheme/images/smilies/chillando.png)
![lloron](http://static.forosdelweb.com/fdwtheme/images/smilies/chillando.png)