Good afternoon, folks,
After so much research and can not understand how it works, I'm trying to solve a problem I'm having.
I am creating a registry of service providers, however I came across the lack of knowledge:
I've created a table that loads the provider data with a column with the change / remove buttons.
<div class="dataTable_wrapper">
<table class="table table-striped table-bordered table-hover" id="dataTables-example">
<thead>
<tr>
<th>Nome</th>
<th>CPF</th>
<th>RG</th>
<th>Telefone</th>
<th>
<i class='fa fa-pencil fa-fw'></i>
</th>
<th>
<i class='fa fa-remove fa-fw'></i>
</th>
<th>
<i class='fa fa-sign-out fa-0.5x'></i>
</th>
</tr>
<thead>
<tbody>
<?php include ("resultado.php"); ?>
</tbody>
</table>
</div>
Below I have created a modal to open a window to change the data provider based on the ID of it that will be obtained from the selected line, all HTML is in a PHP that is called internally in the modal.
<div class="modal fade" id="ModalAlterar" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog">
<?php include "prestadores_alterar.php"?>
<!-- /.modal-content -->
</div>
<!-- /.modal-dialog -->
</div>
The question is, how do I load this modal with the row data that is in the database?
Thanks in advance for the help.