Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Andrejaus klausimai

Parašė Impossibru· 2009 Lie. 27 21:07:43
#6

$result2 = dbquery("SELECT * FROM ".$db_prefix."news  ORDER BY news_datestamp DESC LIMIT 2");
while ($data2 = dbarray($result2)) {

$result = dbquery("SELECT * FROM ".$db_prefix."news_cats WHERE news_cat_id='19'  ");
$data = dbarray($result);

$itemsubject = trimlink($data2['news_subject'], 50);
$news_news = trimlink($data2['news_news'], 50);
echo "<a href='news.php?readmore=".$data['news_id']."'>$itemsubject</a><br>$news_news<br><br>";

}




Labai nesmerkit,bet nesugalvojau kaip sutrumpinti...

P.S. $result2 limita padaro ;DDD

Redagavo Impossibru· 2009 Lie. 27 21:07:53