Well I suggest you become familiar with mysql, upload the image and save it's path along with some form of user identification, subscript, and image id number onto a table.
When you want to display the images, you can use the image path, id, and user to specify which images are selected. when someone goes to view the image full view, you query the image and the subscript only using the id. for example
fullview.php?id=2 will display a image by user 1
fullview.php?id=3 will display an image by user 3