Ad:
 
  • PHP Discussion Thread
  • Unsolved
  • Views: 349
  • PHP RSS
Similar Threads
Feb 22nd, 2010
0

Show all images

Expand Post »
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
Reputation Points: 10
Solved Threads: 0
Light Poster
SuntechWebsites is offline Offline
39 posts
since Oct 2009
Feb 23rd, 2010
0

Re: Show all images

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
Reputation Points: 15
Solved Threads: 15
Posting Pro in Training
whiteyoh is offline Offline
415 posts
since Jun 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: Strange validation behaviour php
Next Thread in PHP Forum Timeline: cms using wordpress





About Us | Contact Us | Advertise | Acceptable Use Policy
Build Custom RSS Feed


Follow us on Twitter


© 2010 DaniWeb® LLC