Parašė Žirklė· 2008 Lap. 6 09:11:28
#4
<?
$user_id = 1;
$sk = array('01','02','03','04','05','06','07','08','09','10','11','12');
$me = array('Sausis','Vasaris','Kovas','Balandis','Gegužė','Birželis','Liepa','Rugpjūtis','Rugsėjis','Spalis','Lapkritis','Gruodis');
$result = dbquery("SELECT * FROM ".$db_prefix."news WHERE news_name=$user_id ORDER BY news_datestamp DESC");
$date = false;
while($data = dbarray($result)) {
if (date("Y m", $data['news_datestamp']) != $date) echo "<font style='font-size:20px; font-weight:bold;'>".date("Y", $data['news_datestamp'])." ".str_replace($sk, $me, date("m", $data['news_datestamp']))."</font><br>";
$date = date("Y m", $data['news_datestamp']);
echo "<b>".date("d",$data['news_datestamp'])."</b> $data[news_subject]<br>";
}
?>
Štai su žodžiais. O ko ten tau dar reikia tai nesupratau.