diff options
author | Ian C <ianc@noddybox.co.uk> | 2018-06-25 21:02:25 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2018-06-25 21:02:25 +0000 |
commit | 52d3b59d43d1c4894a38d47b9606c0f1cff95156 (patch) | |
tree | 55e923759a23288b4bda2c5f24541659c48c0508 /www/add.php | |
parent | 22e2906e30fde29271b1a0f1db08023551b9d8ec (diff) |
Added group parameter to PHP pages and started on Load functionality.
Diffstat (limited to 'www/add.php')
-rw-r--r-- | www/add.php | 7 |
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(); |