summaryrefslogtreecommitdiff
path: root/www/add.php
diff options
context:
space:
mode:
Diffstat (limited to 'www/add.php')
-rw-r--r--www/add.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/www/add.php b/www/add.php
index fe21344..7b9d99f 100644
--- a/www/add.php
+++ b/www/add.php
@@ -28,13 +28,16 @@ try
$db = ConnectDB();
$description = $_REQUEST["description"];
+ $group = $_REQUEST["group"];
$username = $_REQUEST["username"];
$password = $_REQUEST["password"];
$cmd = $db->prepare("INSERT INTO pm_store " .
- "(description, username, password) values " .
- "(:description, :username, :password)");
+ "(description, groupname, username, password) ".
+ "values " .
+ "(:description, :group, :username, :password)");
$cmd->bindParam(":description", $description);
+ $cmd->bindParam(":group", $group);
$cmd->bindParam(":username", $username);
$cmd->bindParam(":password", $password);
$cmd->execute();