Parašė Black· 2011 Rugs. 23 09:09:13
#1
Sveiki. Noriu paklausti kodel man rodo tik keturis atsitiktinius filmus ? stai kodas:
<?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();
?>