View Full Version : No pictures can be seen on Photo

06-26-2008, 08:38 PM
1) Script Title: PHP Photo Album

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/php-photoalbum.htm

3) Describe problem: I am having a problem getting the pictures in the folder to be shown on the web page. I even put it in a blank html page to se if it would work. Here is the page:


Any help would be greatly appreciated.

06-27-2008, 01:20 AM
Where you have:

<script type="text/javascript">

* PHP Photo Album script- Dynamic Drive DHTML code library (www.dynamicdrive.com)
* Visit http://www.dynamicDrive.com for hundreds of DHTML scripts
* This notice must stay intact for legal use

var dimension="4X8" //Specify dimension of gallery (number of images shown), such as 4x2, 3x1 etc
var imagepath="http://www.longsconstruction.net/images/Pictures/Kitchens/Thumbnails/" //Absolute path to image directory. Include trailing slash (/)
var href_target="new" //Enter tar . . .

The script is expecting:


with a lower case x. This is breaking the script. Use a lower case x and see what happens, there could also be other problems. However, everything else looks basically OK.

06-27-2008, 01:32 PM
Thank you so much John. That fixed it! I incorporated it into the site, but now I am having problems showing the thumbnails.


06-27-2008, 02:13 PM
now I am having problems showing the thumbnails.

That's because, the getpics.php is scanning the larger images folder, where you have, for example:


However, its counterpart in the thumbnail folder is named:


with the lower case .jpg file extension, they are both valid image files, but to work with this script, the filenames and extensions must be exactly the same.

Rename one or the other of the files so that they match exactly.

06-27-2008, 03:45 PM
Great catch John. I did not realize it was that sensitive. Thanks again.