Hi
I need help right now, i have a directory full of images that have been uploaded by users, (this use's no mysql) so what i am making is a dmincp that will list all the images in view/ directory and then next to the image there is a button that will say delete so when i click on that button the image file is delted from view/ directory i have this so far.
PHP Code:
<?php
$read = '../view/';
$myDirectory = opendir($read);
while($entryName = readdir($myDirectory))
{
if (strtolower(substr($entryName, -3)) == "jpg")
{
$dirArray[]=$entryName;
echo $entryName.'<br />';
echo '<TABLE width=500 align=center BGCOLOR=#CCCCCC>';
echo '<TR><TD align=center valign=center>';
echo '<img src=' .$read.$entryName. '> <a href="delete.php">Delete</a><BR>';
echo '</TD></TR>';
echo '</TABLE>';
}
}
closedir($myDirectory);
?>
And i dont kow what to put in delete.php so please someone help me ill gve you $3 for this quick help..