php delete button
I am looking for a delete function that i can add to an admin page i will build, i can then sign in and moderate uploads.

here is the code i have for displaying the directory items:

    <?php
    
    $handle = opendir(dirname(realpath(__FILE__)).'/uploads/');
    		while($file = readdir($handle)){
    			if($file !== '.' && $file !== '..'){
    				echo '<img src="uploads/'.$file.'" border="0" />';
    			}
    		}
            
            ?>

I would like a button (custom graphic if possible) next to each item so i can then delete it. if anyone knows how to do this and is willing to share, i would be very greatful.

Thank you for your time.

Jordan
php delete button
===

I am looking for a delete function that i can add to an admin page i will build, i can then sign in and moderate uploads.

here is the code i have for displaying the directory items:

    <?php
    
    $handle = opendir(dirname(realpath(__FILE__)).'/uploads/');
    		while($file = readdir($handle)){
    			if($file !== '.' && $file !== '..'){
    				echo '<img src="uploads/'.$file.'" border="0" />';
    			}
    		}
            
            ?>

I would like a button (custom graphic if possible) next to each item so i can then delete it. if anyone knows how to do this and is willing to share, i would be very greatful.

Thank you for your time.

Jordan