OnLine Gallery

images php coding issues or problems here.

Moderators: macek, egami, gesf

comports
New php-forum User
New php-forum User
Posts: 9
Joined: Wed Nov 09, 2005 4:53 am

OnLine Gallery

Postby comports » Wed Nov 30, 2005 5:15 am

HI all,

Very new to PHP and have had lots of help from you guys so far but I'm really stuck here. I have created an online gallery app for my web site. It all works fine but.....

The system was only designed to work with 1 level. If you add a sub folder all you see is an "image" or picture of the folder

I added some new functionality to it so other users can log in and upload images to their folder and show their friends as well. If you log in as them it only shows you their gallery. No problem.

When I log in as me I see all the folders but as it only goes one level down I can't get into their folders unless I log in as them. I gues what I'm after is to modify my code to do recursive folder listing. (ie if its a image, show the image, If its a folder allow me to click into that folder and run again..)

BUT I'M STUCK.

Heres a link to my page http://www.comports.net/pics/index2.php Password is ash but please don't delete anything..!

First few are ok as they are my folders but John and Jim are others. Spot the problem..?

Any help
Ash

User avatar
Redcircle
Moderator
Moderator
Posts: 830
Joined: Tue Jan 21, 2003 10:42 pm
Location: Michigan USA
Contact:

Postby Redcircle » Wed Nov 30, 2005 4:03 pm

ok this might be way over your head but here is a tutorial for nested tree heirachy which is essentially what you want to do/use

http://www.phpriot.com/d/articles/php/a ... index.html


Return to “PHP coding => Images”

Who is online

Users browsing this forum: No registered users and 1 guest

cron