db_select($query); // send to tpl $smarty->assign("user_id", $user_id); $smarty->assign("user_name", $user[0]['user_name']); $smarty->assign("user_displayname", $user[0]['user_displayname']); $smarty->assign("user_realm", $user[0]['user_realm']); $smarty->display("userview.tpl"); include("footer.php"); ?>