", $sl[0]); } $upit = sprintf ("SELECT Naslov, date_format(DatumPocetka,\"%%d.%%m.%%Y | %%H:%%m\"), Tekst, KolumnaID, month(DatumPocetka), VrstaKolumneID, KratkiOpis FROM Kolumna where KolumnaID=%d and OperOdobrio!=0 and OperOdobrio!=2000", $id); // $upita = sprintf ("SELECT Naslov, DatumPocetka, Tekst, KolumnaID FROM Kolumna_arh where KolumnaID=%d", $ID); // $upitb = sprintf ("SELECT Naslov, DatumPocetka, Tekst, KolumnaID FROM Kolumna where KolumnaID=%d", $ID); // $upit = "(".$upita.") union (".$upitb.")"; $result = mysql_query($upit, $db); $numres = mysql_num_rows($result); if ($numres>0){ while ($myrow = mysql_fetch_row($result)){ printf ("
%s | IKA %s - %s/%s

%s

%s %s

%s

", $myrow[1], $vrsta_kolumneb[$myrow[5]], $myrow[3], $myrow[4], $myrow[0], $slika, reparse_newline($myrow[6]), reparse_newline($myrow[2])); } } } ?>