diff options
author | Ian C <ianc@noddybox.co.uk> | 2018-06-22 13:27:11 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2018-06-22 13:27:11 +0000 |
commit | 840c543df8fa62a0417e53c632751f03185f17a4 (patch) | |
tree | 2001491cbd0cf5dd6be16accbb573caad20a759f /www/edit.php | |
parent | 7964a8ba3dd041511c483b7f220b6d14d71ef69e (diff) |
Fixed up data access pages.
Diffstat (limited to 'www/edit.php')
-rw-r--r-- | www/edit.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/www/edit.php b/www/edit.php index 1c61148..9e78e88 100644 --- a/www/edit.php +++ b/www/edit.php @@ -35,7 +35,7 @@ try $cmd = $db->prepare("UPDATE pm_store " . "set description=:description, " . "username=:username, " . - "password=:password) where id = :id"); + "password=:password where id = :id"); $cmd->bindParam(":id", $id); $cmd->bindParam(":description", $description); $cmd->bindParam(":username", $username); @@ -48,7 +48,7 @@ try } catch(PDOException $e) { - result["error"] = "DB error:" . $e->getMessage(); + $result["error"] = "DB error:" . $e->getMessage(); } header("Content-type:application/json"); |