Greetings, I have a list of names of a database in a table, to give in see details, I linked to another php file in which I would like to see the full details of that person and not leave the rest here I have the code of the details of the person, I do not know how to continue. Thanks:
<?php
include ("conexion.php");
$query ="Select * from empleados where nombre=".$_POST["nombre"];
$rows = $conexion->query($query);
$row=$rows->fetch_assoc();
?>
<p><strong>ID: </strong><?php echo $row["id"]?></p>
<p><strong>nombre: </strong><?php echo $row["nombre"]?></p>
<p><strong>apellido: </strong><?php echo $row["apellido"]?></p>
<p><strong>dni: </strong><?php echo $row["dni"]?></p>
<br/>
<a href="index.php">Inicio</a>
<?php
$conexion = null;
?>