The first question is where are you storing the user's photos? I would recommend this:
Table (User's):
Username | Password | Email
---------------------------
user1 | fdgfdg | fdfgdf
user2 | ffdgfd | fgdfgf
user3 | dgfdgg | fgdgdd
Then, whenever a user signs up, create a folder with that user's name and a subdirectory titled photos.
Create a Table for Each User.
Table user1
Photo | Title | info
----------------------------
duck.jpg | My Duck! | fgdf
cat.png | Le Cat | dfgd
Then, when a user logs in, list all the Titles and link them to the photo dynamically.
So I would be
My Duck --> http://mysite.com/user1/photos/myduck.jpg
Where user1 would be the logged in username, the photos would automatically be added and myduck.jpg would be pulled from the database.
However, this opens up two holes:
- Hotlinking
- If someone knows the username and photo title, they can access the photo without being given permission.