assign('title', $title); $smarty->assign('nr', '1'); $smarty->assign('key', $title); $smarty->assign('content', $tekst); $smarty->assign('subdomena', $subdomena); $smarty->assign('feed', ''); $smarty->assign('swl', $data[$losowe_klucze]); $smarty->assign('swlurl', "http://www.".$data[$losowe_klucze]); $query="SELECT * FROM `woj` ORDER by ngmina"; $result=mysql_query($query); $xxx=mysql_num_rows($result); for ($i=0; $i < $xxx; $i++) { $r=mysql_fetch_array($result); //echo $r[dane]."
".$r[ludzie]."
\n"; $woje .= "".$r[ngmina]."
\n"; } $smarty->assign('woj', $woje); $smarty->display('index.html'); ?>