Código PHP:
<?php
require_once('conexion.php');
$search = '';
if (isset($_POST['search'])){
$search = $_POST['search'];
}
$consulta = "SELECT * FROM alumnos WHERE nombre LIKE '%".$search."%'" ;
$resultado = $conexion->query($consulta);
$fila = mysqli_fetch_assoc($resultado);
?>
<?php if ($resultado>0 && $search!='') {?>
<h2>REGISTROS</h2>
<?php echo "<table>";
echo "<tr>";
echo "<th>Nombre</th>";
echo "<th>edad</th>";
echo "<th>Pais</th>";
echo "</tr>";
while ($fila = mysql_fetch_row($resultado)){
echo "<tr>";
echo "<td>$fila[2]></td>";
echo "<td>$fila[3]</td>";
echo "<td>$fila[4]</td>";
echo "</tr>";
}
echo "</table>"; ?>
<?php }?>