summaryrefslogtreecommitdiff
path: root/www/add.php
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2018-07-11 17:34:10 +0000
committerIan C <ianc@noddybox.co.uk>2018-07-11 17:34:10 +0000
commitaa1c61a18bdc7e686f0c755570178317b1533836 (patch)
tree10dafc6be9d5fab7f36a44b0e1dd8623876412d5 /www/add.php
parent62d926e022aaf35be029f20568e55533caee3bf7 (diff)
Added default value for display column.
Diffstat (limited to 'www/add.php')
-rw-r--r--www/add.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/www/add.php b/www/add.php
index e5c1a18..517d724 100644
--- a/www/add.php
+++ b/www/add.php
@@ -33,9 +33,9 @@ try
$password = $_REQUEST["password"];
$cmd = $db->prepare("INSERT INTO pm_store " .
- "(description, groupname, username, password) ".
- "VALUES " .
- "(:description, :group, :username, :password)");
+ "(description, groupname, username, password, display)".
+ " VALUES " .
+ "(:description, :group, :username, :password, 0)");
$cmd->bindParam(":description", $description);
$cmd->bindParam(":group", $group);
$cmd->bindParam(":username", $username);