<?php
$req_down = mysql_query("SELECT * FROM `down_files` WHERE `type` = '2' ORDER BY `time` DESC LIMIT 3");
if(mysql_num_rows($req_down) > 0) {
$res_down = mysql_fetch_assoc($req_down);
echo '<div class="gmenu"><b>Последние файлы</b>
<a href="' . $set['homeurl'] . '/download/index.php?act=view&id=' . $res_down['id'] . '">' . functions::checkout($res_down['rus_name']) . '</a></div>';
}
?>