Parašė Enzo· 2007 Gru. 17 19:12:57
#2
Prašom
@openside("Atsitiktinis skaitalas");
$uzklausa = "SELECT article_id, article_reads, article_subject FROM ".$db_prefix."articles ORDER BY RAND() LIMIT 2;";
$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."readarticle.php?article_id=$dabar->article_id' target='_blank'><img src='".THEME."images/bullet.gif'> $dabar->article_subject($dabar->article_reads)</a><hr>";
}
Redagavo Enzo· 2007 Gru. 17 19:12:06