in reply to Re^4: CGI Action call
in thread CGI Action call
In which case instead of this
while (my $ref = $sth->fetchrow_hashref ()){ # #warn("generateResponseHash line 587 ref: '$ref'"); hash_display_listing ($ref); ++$count; } $sth->finish (); completeResultHash(%hash_record);
you could just do
pojmy $result = $sth->fetchrow_hashref(); my $json_str = encode_json($result); print $json_str; exit(0);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: CGI Action call
by tultalk (Monk) on Mar 13, 2018 at 02:20 UTC | |
by poj (Abbot) on Mar 13, 2018 at 07:15 UTC | |
by Anonymous Monk on Mar 13, 2018 at 02:44 UTC | |
by tultalk (Monk) on Mar 13, 2018 at 11:11 UTC | |
by marto (Cardinal) on Mar 13, 2018 at 11:14 UTC | |
by tultalk (Monk) on Mar 14, 2018 at 14:09 UTC | |
| |
by tultalk (Monk) on Mar 13, 2018 at 11:21 UTC |