I have this code where I get all the rows out of my mySQL database:
<?php
$result = mysql_query("SELECT * FROM `photos` WHERE `photo_category` = 1 AND `photo_active` = 1");
while($row = mysql_fetch_array($result)) {;
?>
<img src="<?php echo $row['thumb_path'] ?>"><br>
Creatie datum: <?php echo $row['photo_date'] ?><br>
<a href="">Delete picture</a>
<?php }; ?>
I would like to delete the image where my delete button is on. I have no idea how I should start or how I can achieve this. Any help is welcome!