prepare($sql); $sth->execute([$asset_id]); $smarty->assign("asset", $sth->fetch(PDO::FETCH_OBJ)); $smarty->assign("assetclass_options", db_get_options_assetclass()); $smarty->display("assetedit.tpl"); include("footer.php"); ?>