I have a table of all clients retrieved from database - I would like to click on each name in table and get the information about that specific client I clicked on in modal, right now my solution is that information are on another page by using client's id
<td >
<a href = "Client-Detail.php?client_id=<?php echo $fetch['client_id']?>">
<?php echo $fetch['firstName']." ".$fetch['lastName']?>
</a>
</td>
For making a modal I am using Bootstrap 5:
<td data-bs-toggle="modal" data-bs-target="#clientModal">
<?php echo $fetch['firstName']." ".$fetch['lastName']?>
</td>
<div class="modal fade" id="clientModal" tabindex="-1" aria-labelledby="clientModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body">
SPECIFIC CLIENT INFO
</div>
</div>
</div>
</div>
My question is, how to implement retrieving the right info through client's id in modal and not another-new page ?