diff options
author | Ian C <ianc@noddybox.co.uk> | 2018-07-07 13:26:02 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2018-07-07 13:26:02 +0000 |
commit | 62d926e022aaf35be029f20568e55533caee3bf7 (patch) | |
tree | 58b4dcb2de9f91f7af0f1b5893cea5aa07d7a4ea /www/get.php | |
parent | 9bd1ad2bfb807d7714e17112a9dc51f2416a1e6c (diff) |
Added up/down links to reorder entries.
Diffstat (limited to 'www/get.php')
-rw-r--r-- | www/get.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/www/get.php b/www/get.php index d42e57e..c41fafc 100644 --- a/www/get.php +++ b/www/get.php @@ -29,7 +29,7 @@ try $index = 0; - foreach ($db->query("SELECT * FROM pm_store ORDER BY id") as $row) + foreach ($db->query("SELECT * FROM pm_store ORDER BY display") as $row) { $data = array(); $data["id"] = $row["id"]; @@ -37,6 +37,7 @@ try $data["group"] = $row["groupname"]; $data["username"] = $row["username"]; $data["password"] = $row["password"]; + $data["display"] = $row["display"]; $result[$index++] = $data; } |