View Full Version : Photo Album Script displays images randomly

12-10-2007, 12:05 PM
1) Script Title: PHP Photo Album script

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

3) Describe problem: In the javascript portion in the .htm file it has this code:

//Sort images by date? ("asc", "desc", or "")
//"desc" for example causes the newest images to show up first in the gallery
//"" disables this feature, so images are sorted by file name (default)
var gsortorder=""

With this setting, I find that images are only displayed randomly instead of being sorted by filename. Is there a way I can fix this so that it sorts by filename?

12-10-2007, 12:25 PM
This should be deleted. I found the answer by searching. Here is the same question and problem solved:


I will lock and leave this thread here, to help point the way for others

- js1