diff --git a/views/pages/institution/controller/update-school-controller.php b/views/pages/institution/controller/update-school-controller.php new file mode 100644 index 0000000..7d7a175 --- /dev/null +++ b/views/pages/institution/controller/update-school-controller.php @@ -0,0 +1,18 @@ +prepare("UPDATE schools + SET nameSchool = ? + WHERE idSchool = $id"); + $stmt->bindValue(1, $name); + $stmt->execute(); +} \ No newline at end of file diff --git a/views/pages/institution/school/forms-update-school-page.php b/views/pages/institution/school/forms-update-school-page.php new file mode 100644 index 0000000..5181cae --- /dev/null +++ b/views/pages/institution/school/forms-update-school-page.php @@ -0,0 +1,43 @@ +prepare("SELECT * FROM schools + WHERE idSchool = $id + "); + $stmt->execute(); + $rowCat = $stmt->fetch(PDO::FETCH_BOTH); +} +?> + + + + +
+ + + +