From 6c7a859fcf9691023c418366a62ece2f19cf4c9f Mon Sep 17 00:00:00 2001 From: William Harrington Date: Mon, 12 Mar 2018 15:51:42 -0500 Subject: Initial commit for project. --- edit.php | 110 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 110 insertions(+) create mode 100644 edit.php (limited to 'edit.php') diff --git a/edit.php b/edit.php new file mode 100644 index 0000000..04b8e47 --- /dev/null +++ b/edit.php @@ -0,0 +1,110 @@ + + + + + + + +Edit ID + + +'; +//var_dump($_SESSION); +?> +

+Edit Record +
+prepare($sql); + $stmt->execute(['seq' => $seq, 'name' => $name, 'version' => $version, 'configure' => $configure, 'build' => $build, 'install' => $install, 'setup' => $setup, 'notes' => $notes, 'url' => $url, 'id' => $id]); + } catch (PDOException $e) { + echo '
Have a big problem
'; + throw $e; + } + header("location:list.php#$seq"); + exit(); + } + + + $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 edit!'; +} +?> +
+ + -- cgit v1.2.3-54-g00ecf