|
18.03.2006, 17:51
найдите:
PHP код:
$row9 = $db->sql_fetchrow($db->sql_query("select sid, title from ".$prefix."_stories where topic='$topic' $querylang order by counter desc limit 0,1")); $topstory = intval($row9['sid']); $ttitle = filter($row9['title'], "nohtml"); $boxstuff .= "<a href=\"modules.php?name=$module_name&file=article&sid=$topstory\">$ttitle</a></font></center><br>\n";
замените на:
PHP код:
$row9 = $db->sql_query("select sid, title from ".$prefix."_stories where topic='$topic' $querylang order by counter desc limit 0,5"); while (list($topstory,$ttitle) = $db->sql_fetchrow($row9)){ $topstory = intval($topstory); $ttitle = filter($ttitle, "nohtml"); $boxstuff .= "<a href=\"modules.php?name=$module_name&file=article&sid=$topstory\">$ttitle</a></font></center><br>\n"; }
|
|