<?php
$sql = "SELECT DISTINCT (n.uid), u.name FROM {node} n JOIN {users} u USING (uid) WHERE type = 'blog' ORDER BY n.changed DESC LIMIT 10";
$results = db_query($sql);
$items = array();
while ( $data = db_fetch_object($results) ) {
$items[] = l($data->name, "blog/$data->uid");
}
if ( count($items) ) {
print theme('item_list', $items);
}
?>
Comments
Post new comment