How long (is now)?
Not done much on this site for a bit as i got side tracked working on a different project (My roller derby reffing statistics web pages), so this project has taken a bit of a break other than still inputting any films I have watched.
But today I decided to add in to the film details the duration of the film. This is something that I kept thinking about adding but never did anything about, until today. I just added in an hours and mins column into the database, then added in these new elements into the form for adding a new film item and updating an entry. I then linked this up with the code in the background that add's/updates the database. I then pulled this info out on the main public facing page and put it into a string to then be placed on the page. at the moment it is just at the end of the film name after the year. This does not look the best so I will look later on about a better place to place it.
Adding this so late into the project brings with it an issue. The database currently has hundreds of entries all of which do not have duration's and are defaulted to 0. So I wrote some extra code that checks the two entries (hours and mins) and if both are set as 0 then it sets the string that needs to go onto the page as empty. that way you dont see 0 hours 0 mins. I may go back and add in some durations but we shall see, as i may just do some.