Results 1 to 3 of 3

Thread: PHP Photo Album script (sorting)

  1. #1
    Join Date
    Jan 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default PHP Photo Album script (sorting)

    PHP Photo Album script
    http://www.dynamicdrive.com/dynamici...photoalbum.htm

    First off - Great script. But I have but one question. When installing and using it I have noticed that the outputted images aren`t sorted in anyway. How do I go about sorting the A - Z / 0 - 9. The format of my images are "image_0001, image_0002, image_0003 etc" and I would like "image_0001" to be the first on page 1 then work through to "image_0099"

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Code:
    galleryarray.sort()
    A good place for this would be just after the script credit:

    Code:
    /***********************************************
    * 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
    ***********************************************/
    
    galleryarray.sort()
    Untested but, should work.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Jan 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Worked a treat. Thank you.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •