prepare($sql); $sth->execute([$location_id]); $smarty->assign("location", $sth->fetch(PDO::FETCH_OBJ)); $smarty->assign("subnet_options", $db->options_subnet()); $smarty->display("locationsubnetadd.tpl"); include("footer.php"); ?>