Topic awaiting preservation: Hold My Hand and Take a Step Back (Page 1 of 1) |
|
---|---|
Paranoid (IV) Mad Scientist From: Inside THE BOX |
posted 05-20-2003 14:37
Okay, I want to apologize for not continuing with this project lately. I havent even had time to clean my kitchen in weeks, let alone do anything fun. |
Maniac (V) Inmate From: under the bed |
posted 05-20-2003 18:44
I would definately recommend using PHP for this. If it is going to stay at just the 20 (or whatever) images, you don't really need the database - you can hold all the info in an associative array. |
Maniac (V) Inmate From: Seoul, Korea |
posted 05-21-2003 01:21
Like DL, I also did something similar with my image galleries (example). The code is probably not the most efficient, since I did this when I was first learning PHP (it was my first project, actually), and I will most likely rework it this summer, but it still works nicely. PHP is definitely the way to go. |
Bipolar (III) Inmate From: austin, tx, usa |
posted 05-25-2003 07:32
What I did, once again with one of my old galleries, was this: I had a directory called gallery. Within that directory I had my .jpg, and a .txt by the same name. My PHP script (gallery/index.php) would step through the gallery directory, and everytime it found a <name>.jpg, it would display that, then the info in <name>.txt, then a few line breaks. You can easily do this by, as said, using an array with all the <name>.jpg's that the script finds. When the user clicks on a button, it'll go to, say, slideshow.php?page=2, the 2 would reference the array element for the next image, then php would take $array[<number>] . ".jpg", display the image, then suck the info out of $array[<number>] . ".txt" |
Bipolar (III) Inmate From: Berlin (almost) |
posted 05-25-2003 21:12
I've built a little JavaScript picture gallery only recently where I used a combination of forward/back links and DDMs for the navigation - see here: |