I'm having trouble with a small code with delete button.
I've tried it in some ways but I have not been able to make the button with $deletar
do the delete function.
Following code shows each slide and wanted to delete button.
<?php
$sql = mysql_query("SELECT * FROM slider");
while($linha = mysql_fetch_array($sql)){
$id = $linha['id'];
$imagem = $linha['imagem'];
$comentario = $linha['comentario'];
$link = $linha['link'];
?>
<tr>
<td><img src="pages/<?= $imagem ?>" width="150px" height="100px"></td>
<td class="mailbox-name">
<?= $comentario ?>
</td>
<td class="mailbox-subject">
<?= $link ?>
</td>
<td class="mailbox-date">
<input type="button" class="btn btn-danger" src="<?= $deletar ?>" value="Excluir">
</td>
</tr>
<?php } ?>