Hi
I've got a photo website which uses PHP to dynamically create the galleries based on remote folder content; jpeg modified dates etc. There are various galleries of jpegs which are directly created from the various folders full of pics on the server.
I am currently logging each photo viewed into a MySQL database by simply adding a new row to a table for each photo viewed, with columns for date/time, gallery keyword and image number. This was originally for my own curiosity; I wanted to know how much my site was looked at.
I get an average of somewhere around 70 photos viewed a day, hence 70 new rows added to the table.
I would like to make a section for the site for 'most popular photos' from the previous week or so. I realise that the current structure is a little cumbersome. I'd really appreciate any advice on how best to structure the MySQL table to store the stats, to be easily queried by PHP to get the information I need.
I'm quite savvy in both MySQL and PHP, so a plain english description is fine if it's easier!
Thanks a million to anyone who can help - this is turning my brain in knots!
Mark
the site:
http://www.something-about-mark.co.uk/album/albumlist.php