How I do not show this record but the others. Until there is left.
<?php
include "codigo/conexion.php";
$buscar = $_GET['producto'];
$consulta = "SELECT * FROM catalogo where idcat = ".$buscar."";
$resultado = $conexion->query($consulta);
while($row = mysqli_fetch_array($resultado)){
$imagenes = $row['imagencat'];
?>
<img class="d-block img-thumbnail" src="<?php echo $imagenes ?>" >
<?php } ?>