<?php require('polacz.php'); require('./libs/Smarty.class.php'); $tpl = new Smarty; $tpl -> template_dir = './templates/'; $tpl -> compile_dir = './templates_c/'; $Query='SELECT informacje FROM informacje'; { $edycja[] = $c; } $tpl -> assign('edycja', $edycja); $tpl -> display('index.tpl'); ?>
a w index.tpl
{section name=c} {$smarty.section.c.iteration} {$edycja[0].informacje}<br /> {/section}
pobiera mi to co chcę, ale na początku wypisuje 1 (jedynkę) np.1 blablablabla
jak się pozbyć tej jedynki i z czego ona się bierze ?