dlaczego wyświetla mi tylko ostatni wpis?
jak poprawnie użyć pętli while w smarty?
<?php include_once('smarty/Smarty.class.php'); $smarty= new Smarty(); $smarty->template_dir = 'template/'; $smarty->compile_dir = 'template_c/'; include 'config.php'; $zapytanie = "SELECT `text` FROM `tips`"; { $smarty->assign('name',$wiersz[0]); } $smarty->display('index.tpl'); ?>