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