assign("page_title","Dokumenta"); $upit=mysql_query("select * from `nekdok` order by ime"); $tr=0; while($row=mysql_fetch_assoc($upit)){ $dokumenta[]=$row; } $smarty->assign("kategorije",$dokumenta); $smarty->display("header.html"); $smarty->display("dokumenta.html"); $smarty->display("footer.html"); ?>