hi, i'm new to this forum and to php in general, i wrote this small bit of code to display file names from a specific directory instead of hard coding them inside my html :
<?php
if ($handle = opendir('images')) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != "..") {
echo "'$file',";
}
}
closedir($handle);
}
?>
the files are effectively displayed but the thumbnails are shown twice @:
www.mybeautifulcity.co.uk/test/test.php
any idea why this might be happening?😃
thanks