could be this...
[from php.net]
/ This is the correct way to loop over the directory. /
while (false !== ($file = readdir($handle))) {
echo "$file\n";
}
and I would suggest if you set vars to use them to keep things simple....
$dir_name ="accounts/" . $memname . "/" ;
.....
file_list .= "<IMG SRC='$dir_name.$file_name'............
instead of the long version you did...
hehe and yah your 2nd post is right too 😉