$files = mysql_query("SELECT * FROM `download` WHERE `type`='file' ORDER BY `id` DESC LIMIT 5;");
echo '<div class="bmenu">Пять последних файлов:</div>';
while ($arr = mysql_fetch_array($files))
{echo '<div class="menu"> <a href="?act=view&file='.$arr['id'].'">'.$arr['name'].'</a></div>';}