Hi, I'm having trouble to understand how this works, I have five images that store images file name in mysql, each images comes with delete button.

so let say that second remove image button called

PHP Code:
 <input name="remove_images_2" type="submit" /> 
and 3rd images remove button called

PHP Code:
 <input name="remove_images_3" type="submit" /> 
and in call sql to remove image file name from database
PHP Code:
<?php 
// Remove image_2 from database
    
if (isset($_POST['remove_images_2'])){
    
    
$sql mysql_query("UPDATE product SET images_2='NULL' where product_id='$targetID' LIMIT 1");
    }
else
// Remove image_3 from database
    
if (isset($_POST['remove_images_3'])){
    
$sql mysql_query("UPDATE product SET images_3='NULL' where product_id='$targetID' LIMIT 1");
    }
else
// Remove image_4 from database
    
if (isset($_POST['remove_images_4'])){
    
$sql mysql_query("UPDATE product SET images_4='NULL' where product_id='$targetID' LIMIT 1");
    }
else
// Remove image_5 from database
    
if (isset($_POST['remove_images_5'])){
    
$sql mysql_query("UPDATE product SET images_5='NULL' where product_id='$targetID' LIMIT 1");
    }
?>
My question is how to write code to popup confirmation code to say "are you sure you want to delete this images! with (yes and no buttons)"

Dose anyone can help me how to write that code i know is sound easy but because i'm rookie in php.. please help thanks.

AM