PHP, MySQL, Photo Album

Discussion in 'OT Technology' started by ITGuy, Apr 23, 2003.

  1. ITGuy

    ITGuy New Member

    Joined:
    Aug 29, 2002
    Messages:
    31
    Likes Received:
    0
    I'm looking for a good PHP script that uses a MySQL database to create a photo album. I want to be able to have a web page go through the database until it reaches the last record and display all the pictures stored in the database. Anyone know where I can find something like this or information about the functions I would need to use to create such an album? I'm still new to PHP and MySQL but want to learn to do this. Any help is greatly appreciated.
     
  2. druid

    druid What do the 5 fingers say?

    Joined:
    May 13, 2001
    Messages:
    702
    Likes Received:
    0
  3. ancientpc

    ancientpc Guest

    How many pics?

    The easiest way is to just read all files with the extensions .gif / .jpg in a directory into an array, and just use a for loop to output everything. No MySQL database needed.

    I've already written a script for this for one of my own sites, PM me if you want it.
     
  4. fob

    fob Member

    Joined:
    Oct 26, 2000
    Messages:
    219
    Likes Received:
    0
    Location:
    Orange County, CA
  5. Tk

    Tk Well-Known Member

    Joined:
    Dec 23, 2001
    Messages:
    23,073
    Likes Received:
    279
    Location:
    nw iowa
    check out 'Gallery' @ php.resourceindex.com / .net (cant remember)

    its supposed to be a really good one... havent got it setup on my server but its uploaded waiting to be configured.
     
  6. Rob

    Rob OT Supporter

    Joined:
    Jul 6, 2002
    Messages:
    88,612
    Likes Received:
    36
    Location:
    Atlanta, GA
    I don't think Gallery supports a database, but it is an excellent PHP image gallery setup.
     

Share This Page