I am making a query to my database, according to the results given. I get the books with a brief bibliographic description of the book, when I give it more try to get the same data and extract more data from my database. based on the ID of each book.
This is how books are displayed.
When I give it to see more I only get the first book with its title, but if I put it in another book the information keeps repeating
This is the code of how I show the brief information later already have made the connection and consultation.
<div class="card-block">
<!--Text-->
<p class="card-text">
<?php echo$fila["autor"] ?><br>
<?php echo$fila["editorial"] ?><br>
<?php echo$fila["idioma"] ?><br>
<?php echo$fila["ano"] ?><br>
<?php echo$fila["numeroPaginas"] ?><br>
<?php echo$fila["edicion"] ?><br>
<?php echo$fila["genero"] ?><br>
<?php echo$fila["isbn"] ?><br>
<?php echo$fila["ean"] ?><br>
<?php echo$fila["formato"] ?><br>
<?php $id = $fila["idlibros"]?>
</p>
</div>
And that's how I show the information in my modal
<!-- Button trigger modal -->
<button type="submit" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal" name="mimoda" id="milibro">
Ver mas
</button>
<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg" role="document">
<!--Content-->
<div class="modal-content">
<!--Header-->
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<h4 class="modal-title w-100" id="myModalLabel">
<?php echo$fila["nombre"] ?>
<br></h4>
</div>
<!--Body-->
<div class="modal-body">
</div>
<!--Footer-->
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary">Save changes</button>
</div>
</div>
</div>
</div>