PHP kodu
$id = $_GET['id'];
$yazdir = mysql_query("SELECT * FROM pm_categories WHERE id = '".$id."'");
$id = $write['name'];
$row = mysql_fetch_assoc($yazdir);
$data[] = $row;
$smarty->assign('data', $data);
TPL Kodu
{foreach from=$data item=item key=key}
{$item.name}
{/foreach}