openside("Ciekawostki");
$id_kategorii = 22;
$result = dbquery("SELECT news_id, news_image, news_news, news_subject FROM ".DB_NEWS." WHERE news_cat='$id_kategorii' ORDER BY news_datestamp DESC LIMIT 0,1");
while ($row = dbarray($result)) {
echo"<table border='0' class='' cellspacing='0' cellpading='0' width='100%'><td width='105px'><a href='".BASEDIR."news.php?readmore=".$row['news_id']." ' ><img src='".IMAGES_N_T.$row['news_image_t2']."' width='100px' height='72px' style='margin:0px' align='left' /></a></td>";
echo"</td><td valign='top'><strong><a href='".BASEDIR."news.php?readmore=".($row['news_id'])."' >".trimlink($row['news_subject'], 66)."</a></strong><table cellspacing='0' cellpading='0' border='0' valign='top'><td>";
echo"</table></table><br /><table>";
}
$id_kategorii = 22;
$result = dbquery("SELECT news_id, news_image, news_news, news_subject FROM ".DB_NEWS." WHERE news_cat='$id_kategorii' ORDER BY news_datestamp DESC LIMIT 1,6");
while ($row = dbarray($result)) {
echo"<tr><td valign='top' height='26px'>".THEME_BULLET."<a href='".BASEDIR."news.php?readmore=".($row['news_id'])."' >".trimlink($row['news_subject'], 66)."</a>";
}
echo"</td></table>";
closeside();
$result = dbquery("SELECT news_id, news_image, news_news, news_subject FROM ".DB_NEWS." WHERE news_cat='$id_kategorii' ORDER BY news_datestamp DESC LIMIT 0,1");
$result = dbquery("SELECT news_id, news_image, news_image_t1, news_image_t2, news_news, news_subject FROM ".DB_NEWS." WHERE news_cat='$id_kategorii' ORDER BY news_datestamp DESC LIMIT 0,1");
Category Forum
Modifications and Requests - 8Labels
None yet
Statistics
2 participants
Notifications
You are not receiving notifications from this thread.
Related Questions