I am looking for a way to display all images from a folder using php.
And if possible select the folder that matches the user with a session.
My example:
I have a session that starts when a user loggs in called "MM_Username"
Each user has a directory that is the same as their username.
Inside that directory is an image folder that I want to display when they log in.

Thanks,
Tim

hi,

The first thing i would get working first is a while loop that runs through a database with the image URLS.

You could also have file names pre set with the username and then use substr to loop through the URL's of images that contain whats in the session variable

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.