А так?
---
<?
echo \"<div class=\'menu_razd\'>\";
echo \'Последние темы форума\'
echo \"</div>\";
$adm_add2=NULL;
if (!isset($user) ||
$user[\'level\']==0){
$q222=mysql_query
(\"SELECT * FROM `forum_f` WHERE
while ($adm_f = mysql_fetc
($q222))
{
$adm_add
[]=\"`id_forum` <> \'$adm_f
[id]\'\";
}
if (sizeof($adm_add)!=0)
$adm_add2=\' WHERE\'.implode
(\' AND \', $adm_add);
}
echo \"<table class=\'post\'>
$q=mysql_query
(\"SELECT * FROM `forum_t`
$adm_add2 ORDER BY `time` DESC
while ($them = mysql_fetch
($q))
{
$forum=mysql_fetch_assoc
(mysql_query
(\"SELECT * FROM `forum_f` WHERE
[id_forum]\' LIMIT 1\"
);
$razdel=mysql_fetch_assoc
(mysql_query
(\"SELECT * FROM `forum_r` WHERE
[id_razdel]\' LIMIT 1\"
);
$ank=mysql_fetch_assoc
(mysql_query
(\"SELECT * FROM `user` WHE
[id_user] LIMIT 1\"
);
echo \" <tr>n\";
if ($set
[\'set_show_icon\']==2){
echo \" <td class=\'icon48\'
echo \"<img src=\'/style/
themes/$set[set_them]/
forum/48/them_$them
[up]$them[close].png\' /
>\";
echo \" </td>n\";
}
elseif ($set
[\'set_show_icon\']==1)
{
echo \" <td class=\'icon14\'
echo \"<img src=\'/style/
themes/$set[set_them]/
forum/14/them_$them
[up]$them
[close].png\' alt=\'\' />\";
echo \" </td>n\";
}
echo \" <td class=\'p_t\'>n
echo \"<a href=\'/forum/
$forum[id]/$razdel[id]/
$them[id]/\'>$them[name]</
a> <a href=\'/forum/$forum
[id]/$razdel[id]/$them
[id]/?page=end\'>
(\".mysql_result
(mysql_query
(\"SELECT COUNT
(*) FROM `forum_p` WHERE `id
[id]\' AND `id_razdel` = \'$
[id]\' AND `id_them` = \'$t
[id]\'\"
,0).\"
</a>n\";
echo \" </td>n\";
echo \" </tr>n\";
echo \" <tr>n\";
if ($set
[\'set_show_icon\']==1)echo
$post=mysql_fetch_assoc
(mysql_query
(\"SELECT * FROM `forum_p` WHERE
[id]\' AND `id_razdel` = \'$
[id]\' AND `id_forum` = \'$
[id]\' ORDER BY `time` DESC
$ank2=mysql_fetch_assoc
(mysql_query
(\"SELECT * FROM `user` WHE
[id_user] LIMIT 1\"
);
echo \"Посл.: <a href=\'/
info.php?id=
$ank2[id]\' title=\'Анкета \"
$ank2[nick]</a> (\".vremja
($post[\'time\']).\"
<br /
>n\";
echo \" </td>n\";
echo \" </tr>n\";
}
echo \"</table>n\";
?>
---