Well the code I wrote doesn't do what you want it to - all mine does is find out what the date of the most recent update to a blog was. Hell, I just realized it doesn't even respect the
published flag :( I should fix that....
Plus it's written in ASP, not PHP. Dunno if you're on a Windows server or not, but it'll only work under IIS, not Apache.
All I really did was create a new user in the database with only the
SELECT right (read-only, essentially) on the WP databases. Then the ASP code just queries each database for the first record of the
wp_posts table after sorting by post date. When it gets all the dates from 16 blogs into an array, it sorts the array and displays the info on my page.
A similar setup should work for you :) You'll probably want to dig into the WP code though to find out exactly how to structure the query so it respects the
publish flag and whatnot though.