Sunday 24 February 2008

Programming for Fun!

Spent a happy afternoon writing an improved feature to administer my photo site . I wrote the site in order to begin teaching mysef PHP, it consists of a menu system to select galleries then view photographs within the selected gallery either individually or as a slideshow.
I also wrote an admin system to upload photos, assign them to galleries, manage the galleries and users etc. The basic problem was how to enhance this so that once photgraphs have been uploaded I could alter the display sequence (i.e. the order in which the photographs are displayed once the gallery is selected).
In the end I plumped for a simple idea of allowing the administator to assign an integer as the display sequence indicator and developed a page which would display all the thumbnails for a particular gallery and allow them to be resequenced as required. Had to struggle a little with the arcane way in which you must pass data between pages - the "connectionless" state of the internet leaves a lot to be desired when trying to develop "joined up" systems.

No comments: