I’m not sure that you want it, but if you don’t please post it
I think that you want 2 div,
1 - with images uploads by user and confirmed by admin,
2- status of images upload, DOES NOT EXISTS or PROCESSING until admin confirmed
I don’t know how admin confirm, there are multiples solutions,
if you use database, you can mark inside confirm.
But in code that you post there is no database, i supposed that you don’t use.
[php]
<?php
$counter =0;
$dirname = "SnapsConfirmed/";
if(is_dir($dirname) && is_readable($dirname)) {
$images = scandir($dirname);
$ignore = Array(".", "..");
foreach($images as $curimg){
if(!in_array($curimg, $ignore)) {
$counter++;
echo "<img src='Snaps/$curimg' /> <br/>
<br/>
";
}
}
}
?>
<?php
$counter =0;
$dirname = "Snaps/";
if(is_dir($dirname) && is_readable($dirname)) {
$images = scandir($dirname);
$ignore = Array(".", "..");
foreach($images as $curimg){
if(!in_array($curimg, $ignore)) {
$counter++;
echo "<img src='Snaps/$curimg' /> PROCESSING<br/>
<br/>
";
}
}
}
if($counter==0){
echo" DOES NOT EXISTS<br>";
}
?>
[/php]
Another solutions are move confirmed images to an other directory
There are many solutions alternatives, but try with this.