Como inserir botoes Edit e Excluir na grid de regisrtros
Ola Pessoal, estou tentando inserir dois botoes EDIT e EXCLUIR na grid, conforme segue abaixo, estou aprendendo a usar datatable , quando inserido estes comandos, desalinha o topo da grid. Quem puder ajudar, fico grato. Obrg a todos que postarem ajuda.
<div class="container">
<div class="table-responsive">
<table id="layoutGrid" class="table table-striped table-bordered">
<thead>
<tr>
<td>Codigo</td>
<td>Produto</td>
<td>Nome Interno</td>
</tr>
</thead>
<?php
while($row = mysqli_fetch_array($result))
{
echo '
<tr>
<td>'.$row["Es_Id"].'</td>
<td>'.$row["Es_Produto"].'</td>
<td>'.$row["Es_NomeInterno"].'</td>
** <td>
<button class="showr">Editando registro
</button>
<a href=""> editar
</a>
</td>**
</tr> ';
}
?>
</table>
</div>
</div>
</body>
</html>Discussão (1)
Carregando comentários...