= curdate() ORDER BY `datum` ASC LIMIT 3"); for ($i=0;$i < (mysql_num_rows($query)); $i++) { $opt = mysql_fetch_array ($query); $datum = datum_change ($opt['datum'], 0); $size_cel = strlen($datum) + strlen($opt['vrsta']) + strlen($opt['naslov']) + strlen($opt['text']); $size_text = strlen($opt['text']); $razlika = $size_cel - $size_text; $size = 79 - $razlika; $text = str_replace ("
", " ", $opt['text']); $text_s = text_short ($text, $size); $link = "frame.php"."?naslov=".$opt['id']; $html =<<{$opt['vrsta']}: $datum - {$opt['naslov']}: $text_s   Več tukaj !
HTM; echo $html; } ?>