I have a script that populates a form from MySQL database table row for editing. I'm performing MySQL SELECT and UPDATE via PDO. After editing a particular table row and clicking on the submit button, the table row doesn't update. The following is "modify-course.php": <?php // configuration require("../includes/config.php"); // query admin table to retrieve current admin's profile //select a particular admin by id // query users table to retrieve current admin's profile if (array_key_exists('aid', $_GET)) { // select a particular admin by id $stmt = $pdo->prepare("SELECT * FROM admin WHERE aid=?"); $stmt->execute([$_GET["aid"]]); $admin = $stmt->fetch(); # get admin data if …

Member Avatar
Member Avatar
+0 forum 3

The End.