Skip to main content
Known Participant
March 15, 2007
Question

outputting dynamic images

  • March 15, 2007
  • 2 replies
  • 439 views
im allowing users to upload multiple images of themselves onto my site....the system works by naming the image dynamically..using the users id number, and then adding a number taking from a recordcount of total images uploaded by the user, to differentiate the images..

for example if dan(id=2) had already uploaded 5 images....the next image he uploaded would be named 2_5.gif, and then then next one would be 2_6.gif.

the issue now is, that i cant output the images dynamically, i have to refer to each image individually..is there anyway round this?

cheers
This topic has been closed for replies.

2 replies

Inspiring
February 6, 2008
Store the path, including the filename in your db instead of the image. Then select the path with a query and put it into your img tag.
Participating Frequently
February 6, 2008
Hi there,
This is what I have managed to do so far but need help from here.

I have stored pictures for a property in a table(different from the properties table).
I display my properties and when clicked for more pictures a pop up window opens and this is what that pop up does:
It displays the first image based on the developmentID passed in the previous URL and this is where I am stuck:
When I click next it does not go to the next picture and I do not know how to do it. I thought of a loop but cannot figure out how to do it....any help would be appreciated!!
namtaxAuthor
Known Participant
March 15, 2007
its ok..have figured out how to do it
Participating Frequently
February 6, 2008
Hi namtax, Could you please explain how you did this? Or does anybody else out there know how to do this?

Any help would be appreciated!!