hi there this is script gets the content in a folder and if you echo output it displays the images inside a div
Code:
// open the directory
$dir = opendir( $pathToImages );
$counter = 0;
// loop through the directory
while (false !== ($fname = readdir($dir)))
{
// strip the . and .. entries out
if ($fname != '.' && $fname != '..')
{
$output .= "<div id=\"id\">";
$output .= "<img src=\"{$pathToImages}{$fname}\" border=\"0\" />";
$output .= "</div>";
}
}