在我正在开发的站点中,我想删除选定的图像,但是它总是删除最后一个图像,而不是选定的图像。有人可以解决这个问题吗?谢谢!
此链接中的所有代码
<div class="col-sm-6 col-md-4 col-lg-2">
<br>
<div id="imagem_galeria"><a class="fancybox" href="upload/bairro_galeria/<?php echo $row['imagee']; ?>" data-fancybox-group="gallery"><img src="upload/bairro_galeria/<?php echo $row['imagee']; ?>" class="image-responsive"></a></div>
<br>
<div class="row">
<div class="col-sm-6" align="right"><a href="admin_bairro_galeria_editar?update_id=<?php echo $row['id']; ?>" class="btn btn-warning btn-sm custom-btn" >Editar</a></div>
<div class="col-sm-6" ><a href="#exampleModal2" class="btn btn-danger btn-sm custom-btn" data-toggle="modal">Eliminar</a>
<div class="modal fade" id="exampleModal2" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Pretende mesmo eliminar?</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-warning custom-btn" data-dismiss="modal">Cancelar</button>
<a href="?delete_id2=<?php echo $row['id']; ?>" class="btn btn-danger custom-btn" >Eliminar</a>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<br>
</div>