Hi All
At the minute I am trying to create a database driven photo gallery. I have one page that will display the photo albums. I display the album title, the albums cover picture and a brief description of the album. From here I want to create a link using the album title. When the user clicks this link, a gallery will open where users can view the pictures from the selected album.
The problem I have is when a user clicks the link. I'm not entirely sure how to do this. My idea was to have the link open a php file and in this php file determine which link had been clicked. Depending on which link, there would be a number of functions. A different function for every photo album. Having figured out which link was clicked, the appropriate function would be called. In this function, I would query the database and only return the pictures that belong to the album that was selected by the user. Is this a suitable way to do this? And if it is I dont know how I would determine which link was clicked by the user.
I would appreciate any help and advice.
Thank you.