From 3b5a092df12e386624414f32962bfd500fbabcbb Mon Sep 17 00:00:00 2001 From: William Harrington Date: Tue, 12 Feb 2019 15:57:59 -0600 Subject: Add A8 server build layout --- A8_srv_build/delete.php.old | 77 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 A8_srv_build/delete.php.old (limited to 'A8_srv_build/delete.php.old') diff --git a/A8_srv_build/delete.php.old b/A8_srv_build/delete.php.old new file mode 100644 index 0000000..cb342aa --- /dev/null +++ b/A8_srv_build/delete.php.old @@ -0,0 +1,77 @@ + + + + + + + +Delete ID + + +'; +//var_dump($_SESSION); +?> +

+Delete Record +
+prepare($sql); + $stmt->execute(['id' => $id]); + } catch (PDOException $e) { + echo '
Have a big problem
'; + throw $e; + } + header("location:list.php"); + } + + $sql = 'SELECT id, seq, name, version, configure, build, install, setup, notes, url FROM PKG, PKG_CFG, PKG_BLD, PKG_NST, PKG_SET, PKG_NOT, PKG_URL WHERE PKG_CFG.pkg_id=PKG.id AND PKG_BLD.pkg_id=PKG.id AND PKG_NST.pkg_id=PKG.id AND PKG_SET.pkg_id = PKG.id AND PKG_NOT.pkg_id=PKG.id AND PKG_URL.pkg_id=id AND PKG.id=:id'; + try { + + $stmt = $pdo->prepare($sql); + $stmt->execute(['id' => $id]); + } catch (PDOException $e) { + echo '
Have a big problem
'; + throw $e; + } + + $row = $stmt->fetch(PDO::FETCH_ASSOC) +?> +
+ +
+ +
+ +

+

+

+

+

+

+

+
+
+ +
+
No ID given to delete!
'; +} +?> +
+ + -- cgit v1.2.3-54-g00ecf