I have problem outputing this to page..
for ( $i = 0; $mainarray[$i] != ''; $i++ ){
$query = mysql_query("SELECT ... FROM ... WHERE id=$i") or die(mysql_error());
while($tmp = mysql_fetch_assoc($query))
{
$something[] = $tmp;
}
$smarty->assign('stuff'.$i, $something);
}
I could manualy do it like
{section name=i loop=$stuff1}
.....
{/section}
{section name=i loop=$stuff2}
.....
{/section}
but thats not really nice way.