Yanılmıyorsam Phpnuke Kullanıyorsun.
İlk Başladığım Zamanlar Bende Kullanmıştım.
Aşağıdaki Kodları Kullanırsan Sorunun Çözulecektır.
<?php
#### www.netopsiyon.com # http://www.netopsiyon.net # Block_Adi yerine bloğu kaydettiğiniz adı yazmanız gerekmektedir.##
if (eregi("block-test",$PHP_SELF)) {
Header("Location: index.php");
die();
}
global $prefix, $db;
$sql = "SELECT sid, title, comments, counter FROM ".$prefix."_stories WHERE topic='1' ORDER BY sid DESC LIMIT 0,5";
$result = $db->sql_query($sql);
while (list($sid, $title, $comments, $counter) = $db->sql_fetchrow($result)) {
$title2= substr($title,0,20);
$content .= "<img src=\"https://www.r10.net/images/icon_dot.gif\" border=0 valign=absmiddle> <a href=\"modules.php?name=News&file=article&sid=".$sid."\">$title</a><br>";
}
global $prefix, $db;
$content .= "<table width=\"100%\" cellpadding=\"2\" cellspacing=\"2\" align=\"center\"><tr>";
$sql = "SELECT sid, title, comments, counter FROM ".$prefix."_stories WHERE topic='2' ORDER BY sid DESC LIMIT 0,5";
$result = $db->sql_query($sql);
$yanyanacek=1;
while (list($sid, $title, $comments, $counter) = $db->sql_fetchrow($result)) {
$title2= substr($title,0,20);
$content .= "<td width=\"50%\"><p><img src=\"https://www.r10.net/images/icon_dot.gif\" border=0 valign=absmiddle> <a href=\"modules.php?name=News&file=article&sid=".$sid."\">$title</a><br>";
if($yanyanacek%2 == 0) $content .= "</tR><TR>";
$yanyanacek++;
}
$content .= "</tr></table>";
?>Çözülüp Çözülmediğini Yazarsan Kodları Bir Kontrol Ederim.
Saygılarımla.
Burak Altunok.