prepare($sql); $sth->execute([$subnet_id]); $smarty->assign("subnet", $sth->fetch(PDO::FETCH_OBJ)); $smarty->assign("node_ip", $node_ip); $smarty->display("assigniptonode.tpl"); include("footer.php"); ?>