Rows($sql); $smarty->assign("r",$r); #BANNER $sqlBanner = "SELECT * FROM tbl_banner WHERE ba_id = 1"; $rB = $db->Rows($sqlBanner); $smarty->assign('rB',$rB); $smarty->display($template_root.'rules.tpl'); ?>