assignByRef("randomproizvodi",$rows); #### Slider $rows1=array(); $upit=mysql_query("SELECT * FROM `slider` WHERE `tip`=2 ORDER BY `slid` DESC"); while($row=mysql_fetch_assoc($upit)){ $rows1[]=$row; } $smarty->assignByRef("slider",$rows1); $smarty->display("header.html"); $smarty->display("index.html"); $smarty->display("footer.html"); ?>