summaryrefslogtreecommitdiff
path: root/www/edit.php
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2018-06-25 21:02:25 +0000
committerIan C <ianc@noddybox.co.uk>2018-06-25 21:02:25 +0000
commit52d3b59d43d1c4894a38d47b9606c0f1cff95156 (patch)
tree55e923759a23288b4bda2c5f24541659c48c0508 /www/edit.php
parent22e2906e30fde29271b1a0f1db08023551b9d8ec (diff)
Added group parameter to PHP pages and started on Load functionality.
Diffstat (limited to 'www/edit.php')
-rw-r--r--www/edit.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/www/edit.php b/www/edit.php
index 9e78e88..7bcd604 100644
--- a/www/edit.php
+++ b/www/edit.php
@@ -29,15 +29,18 @@ try
$id = $_REQUEST["id"];
$description = $_REQUEST["description"];
+ $group = $_REQUEST["group"];
$username = $_REQUEST["username"];
$password = $_REQUEST["password"];
$cmd = $db->prepare("UPDATE pm_store " .
"set description=:description, " .
+ "groupname=:group, " .
"username=:username, " .
"password=:password where id = :id");
$cmd->bindParam(":id", $id);
$cmd->bindParam(":description", $description);
+ $cmd->bindParam(":group", $group);
$cmd->bindParam(":username", $username);
$cmd->bindParam(":password", $password);
$cmd->execute();