The easiest way would probably need to use a mysql table to keep track of your updates. If you need any help setting that up I could help, if not all you would need to do to limit it to 5 posts is this:
mysql_query("SELECT * FROM updates ORDER BY id DESC LIMIT 5");
When you do this make sure "id" is set to auto-increment.