sounds like just some php code recording the latest 5 uploads on either the database or a particular file and then just another module for reading and displaying those figures with a function. Try to break the problem into several. For instance, first worry about finding a module to display just 5 photographs and nothing else.
Thanks for the comments! I copied past the code and it works fine, except for showing the pics. I get a little red cross, the picture is not shown (please see http://www.weeklyfun.nl/test.php and look in the rightbar). The pics are linked correctly, but just not shown.
Last 2 questions: 1. Sometimes I get this error: Could not execute query : SELECT * from plogger_pictures order by `id` DESC LIMIT 10.No database selected How to solve that one?
2. Is there also a way to get the latest 5 comments?