diff options
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"); |