get meber
This commit is contained in:
@@ -87,13 +87,13 @@ long WrenchPromoGetMember( CVars in, CVars &out )
|
||||
if (res != NULL && pgsql_num_rows(res) > 0) {
|
||||
out["total_record"] = pgsql_num_rows(res);
|
||||
|
||||
for (int i = 0, n = pgsql_num_rows(res); i < n; i++) {
|
||||
map<const char*, const char*>f = pgsql_fetch_assoc(res, i);
|
||||
|
||||
map<const char*, const char*>f = pgsql_fetch_assoc(res, 0);
|
||||
if (f.empty()) continue;
|
||||
CVars rec;
|
||||
map_to_cvars(f, rec);
|
||||
out = rec;
|
||||
}
|
||||
ret = PHP_API_OK;
|
||||
}
|
||||
ret = PHP_API_OK;
|
||||
out["status"] = "OK";
|
||||
|
||||
Reference in New Issue
Block a user