Estos son mis archivos con los que estoy trabajando
División.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="content-type" />
<title>Una columna</title>
</head>
<body>
<div id="contenido">
<center>
<div id="fijo">
<center><h1>Antigüedad</h1></center>
<H4>Escriba un numero de la relación</H4>
<form method="POST" action="vista.php" >
<div class="form-group">
<label for="Clave">clave</label>
<input type="text" name="id" class="form-control" id="id">
</div>
<center>
<input type="submit" value="Consultar" class="btn btn-info" name="btn2">
</center>
</form>
</div>
<br>
<div class="mod-contacto">
<?php
include("abrir_conexion.php");
?>
<table border=1>
<?php
$sql="SELECT * from $tabla_db1";
$result=mysqli_query($conexion,$sql);
while($mostrar=mysqli_fetch_array($result)){
?>
<tr>
¿<td><font color=yellow><?php echo $mostrar['id']¿?></font></td>
¿<td><font color=yellow><?php echo $mostrar['nombre']¿?></font></td>
¿<td><font color=yellow><?php echo $mostrar['apellidos']¿?></font></td>
<?php
}
?>
</tr>
</table>
</div>
</center>
</div>
</body>
</html>
----------------------------------------------------------------------------------------------------------
vista.php
<! Doctype html>
<html lang="es">
<title></title>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="">
</head>
<body>
<div id="contenido">
<?php
if(isset($_POST['btn2']))
{
include("abrir_conexion.php");
$id = $_POST['id'];
if($id=="") //VERIFICO QUE AGREGEN UN id OBLIGATORIAMENTE.
{echo "Digita una clave por favor. (Ej: Inf...)";}
else
{
$resultados = mysqli_query($conexion,"SELECT * FROM $tabla_db1 WHERE id = '$id'");
while($consulta = mysqli_fetch_array($resultados))
{
echo"
<table width=\"100%\" border=\"1\">
<tr><td rowspan=16><center>foto</center></td></tr>
<tr><td>".$consulta['foto']."</td> </tr>
<tr><td><font color=white><center>Id</center></font> </td></tr>
<tr><td><font color=red><b><center>".$consulta['id']." </center></b></font></td></tr>
<tr><td><font color=white><center>Nombre</center></font> </td></tr>
<tr><td><font color=red><b><center> ".$consulta['nombre']."</center></b></font></td> </tr>
<tr><td><font color=white><center>Apellidos</center></font></td></tr>
<tr><td><font color=red><b><center> ".$consulta['apellidos']."</center></b></font></td></tr>
<tr><td><font color=white><center>Situacion</center></font></td></tr>
<tr><td><font color=red><b><center> ".$consulta['situacion']."</center></b></font></td></tr>
<tr><td><font color=white><center>Edad</center></font> </td></tr>
<tr><td><font color=red><b><center> ".$consulta['edad']."</center></b></font></td></tr>
<tr><td><font color=white><center>Fecha de Nac.</center></font></td></tr>
<tr><td><font color=red><b><center> ".$consulta['fecha_nac']."</center></b></font></td></tr>
<tr><td><font color=white><center>Fecha de Alta</center></font></td></td></tr>
<tr><td><font color=red><b><center>".$consulta['fecha_alta']."</center></b></font></td></tr>
</table>";
}
}
include("cerrar_conexion.php");
}
?> <br>
</div>
</body>
</html>