Good evening, I'm doing a system for booking juices in php, but what happens is that when making a booking record, all users can see the reservations of others and I just want them to see their own reservation.
//este codigo es para mostrar las reservas
<?php
$consulta="select * from reserva";
$ejecutar=mysqli_query($con,$consulta);
$i=0;
while($fila=mysqli_fetch_array($ejecutar)){
$dni=$fila['dni'];
$nombres=$fila['nombre'];
$apellidos=$fila['apellido'];
$jugo=$fila['jugo'];
$fecha=$fila['fecha'];
$i++;
?>