Go Back   Team Photoshop Forum > Cool Websites, Web Site Design and Technology > Client Side code

Thread Tools Display Modes
Old 03-08-2005, 07:00 PM   #1
Registered User
Join Date: Jul 2003
Posts: 80
Image Gallery with PHP

First off I don't know too much about PHP so I hope I'm not asking for a lot here, but basically I need to know how to make an image gallery with the help of PHP. More specifically...

Currently I run the website for my dad's company ( It is quite hideous as of now and I plan a major overhaul at some point, but first I need to create a new image gallery. As it is now, my image gallery consists of a page with links, each link going to a different page with an image on it. As you can imagine, creating and managing one page per image, when I am soon to post dozens of new images, is very very tedious and time consuming.

My goal is this: I want to have a page with two frames. One frame will be narrow and run horizontally along the bottom. This will be scrollable side to side and contain thumbnails. The above frame will load the actual image when a thumbnail is clicked. This way it is easy to add or remove images, having only to edit a small amount of code, rather than creating and deleting entire pages along with accompanying links. It seems to me this should be possible with one page.

I am in the process of learning PHP but schoolwork interferes, so I need to cut to the chase and learn this one thing so I can get going on the site work.

Is PHP the best way to accomplish this, or am I looking for something else altogether?

Step-by-step not expected if it's complicated, but a gentle nudge in the right direction would also be appreciated. Thanks.
lifeonaplate is offline   Reply With Quote
Old 03-21-2005, 09:22 AM   #2
Registered User
Join Date: Feb 2005
Posts: 4
Tethered is on a distinguished road
PHP would be OK for this, i suppose.

You'd have your normal HTML framesets, let's say named "bottom" and "top".
The code for your "bottom" frame would go to some php which would be something like this:
(let's see if the board will let me straight-post some code...)

PHP Code:
= new array(
$imgArr as $curImg)
"<a href='" $curImg[1] . "' target='top'><img src='" $curImg[0] . "' border=0></a>&nbsp;";

That way, you'd just add a new array("thumbURLX.jpg", "fullURLX.jpg") line for each image you wanted to add (Make sure you keep track of commas separating each one).

I haven't tested that or anything, but you get the drift.
Tethered is offline   Reply With Quote
Old 05-10-2011, 06:30 PM   #3
Registered User
Join Date: May 2011
Posts: 1
bizboy12 is on a distinguished road
Free PHP Image Gallery Scripts

Need some free PHP image gallery scripts?
You can search and free download the right PHP image gallery script on the site
Hopefully can help you!
Kind Regards!
bizboy12 is offline   Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump

All times are GMT -8. The time now is 07:58 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
all content 2001-2005