assign("contents",$myrow); $smarty->assign("button","1"); $smarty->assign("section","index"); $smarty->display('header.tpl'); $smarty->display('index.tpl'); $smarty->display('footer.tpl'); ?>