query($sql); $db->next_record(); $page = $db->Record; $smarty->assign("page",$page); $smarty -> display ('page.html'); ?>