Hi people i currently have a script that displays images from a directory on a page
it works but now that users are starting to have more than 20 images in their directories my page design is suffering..
So does anyone know of a script that will after the image count has reached 10 start a new page ??
PHP:
$path = "../../usr/{$user}/images/";
$dir_handle = @opendir($path) or die("Error could not list image directory");
while ($file = readdir($dir_handle))
{
if($file!="." && $file!="..")
echo "<img style=\"border:#FFF thin solid\" src=\"$dir$file\" height=\"55\" width=\"55\">";
}
closedir($dir_handle);
it works but now that users are starting to have more than 20 images in their directories my page design is suffering..
So does anyone know of a script that will after the image count has reached 10 start a new page ??