assign("user",$user); } $db->sql_query("select * from text where id='terms'"); $main_text = $db->fetch_item("text"); $db->sql_query("select * from text where id='services'"); $short_text = $db->fetch_item("short"); $smarty->assign("main_text",$main_text); $smarty->assign("short_text",$short_text); $smarty->display("terms.html");