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