Continuing the journey of functions that I have used to create the photo upload site I will go on to detail those that are associated with the album generation below:
The first three functions that you can see above are as follows:
– album_data – This function is used to pull the information stored in the database about the users albums. It is then stored in array, with the first field removed. This allows me to then call the information about each of the albums such as the title and description to display to the user.
– album_check – In this function we are checking to see if the album that has been requested belongs to the current user. if this is the case true is returned, if not false. We are then able to ensure that albums can’t be modified by an external party that isn’t the logged in user.
View original post 435 more words