ghosh123 has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks,
In my cgi perl script I have a query string retrieved from $ENV{QUERY_STRING} like below :
my $string = $ENV{QUERY_STRING}
For example $string contains
OPENBRACK1=%28&FIELD1=view&COMP1=%not like&VALUE1=micado&CLOSEBRACK1=% +29&ANDOR2=AND&OPENBRACK2=%28&FIELD2=path&COMP2=like&VALUE2=autan&CLOS +EBRACK2=%29&NoOfRows=1&savE_RPt_aS=qry2&SaVE_RUn=Save&query1=q1
How can I parse the above string a form a query like
"select view,path from MyTable where view not like %micado% and path l +ike %autan% ;
Please help.
Thanks as always for your help.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to parse a QUERY_STRING and construct an sql query out of that ?
by CountZero (Bishop) on Jul 26, 2012 at 06:17 UTC | |
|
Re: How to parse a QUERY_STRING and construct an sql query out of that ?
by Anonymous Monk on Jul 26, 2012 at 06:42 UTC | |
|
Re: How to parse a QUERY_STRING and construct an sql query out of that ?
by mjscott2702 (Pilgrim) on Jul 26, 2012 at 09:55 UTC |