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