query($sql); $smarty->assign("users", $sth->fetchAll(PDO::FETCH_ASSOC)); $smarty->display("user.tpl"); include("footer.php"); ?>