Parašė Mantux94· 2008 Vas. 17 21:02:25
#2
<?php @openside("Naujienos");
$uzklausa = "SELECT news_id, news_reads, news_subject FROM ".$db_prefix."news ORDER BY RAND() LIMIT 6;";
$rezas = mysql_query($uzklausa)
or die ("Error in query: $uzklausa. " . mysql_error());
$dabar = mysql_fetch_object($rezas);
if (mysql_num_rows($result) > 0)
while($dabar = mysql_fetch_object($rezas))
{
echo "<a href='".BASEDIR."news.php?readmore=$dabar->news_id' target='_blank'><img src='".THEME."images/bullet.gif'> $dabar->news_subject($dabar->news_reads)</a><hr>";
}
@closeside(); ?>