uid added

This commit is contained in:
CHIEFSOFT\ameye
2023-07-14 13:40:39 -04:00
parent d6143d4944
commit 7808581c16
+4 -1
View File
@@ -817,7 +817,7 @@ long WrenchAccountSettings( CVars in, CVars &out ){
out["total_record"] = "0";
res = pgsql_query("SELECT id,title,description,pref_id FROM members_settings_options ORDER BY lorder ASC");
res = pgsql_query("SELECT id,title,description,pref_id,uid FROM members_settings_options ORDER BY lorder ASC");
if (res != NULL && pgsql_num_rows(res) > 0) {
out["total_record"] = pgsql_num_rows(res);
@@ -830,6 +830,9 @@ long WrenchAccountSettings( CVars in, CVars &out ){
snprintf(vname, sizeof (vname), "id_%05d", i);
out[vname] = rec["id"];
snprintf(vname, sizeof (vname), "uid_%05d", i);
out[vname] = rec["uid"];
snprintf(vname, sizeof (vname), "title_%05d", i);
out[vname] = rec["title"];