<br><font size=2 face="sans-serif">Hi </font>
<br>
<br><tt><font size=2>> You can use a replaceable parameter in the FILTER
clause if all you ...</font></tt>
<br><tt><font size=2>This introduces the hazard of SQL-Injection, doesn't
it?</font></tt>
<br>
<br><tt><font size=2>Bye</font></tt>
<br><tt><font size=2>Benedikt Rothe</font></tt>
<br>
<br><tt><font size=2>mapserver-users-bounces@lists.osgeo.org schrieb am
24.01.2009 14:04:42:<br>
<br>
> On Sat, Jan 24, 2009 at 3:18 AM, Saka Royban <srph124@yahoo.com>
wrote:<br>
> > Hi all<br>
> > I'm looking for a way to change SQL dynamically via URL parameters.
it<br>
> > sounds from doc that changing DATA element in map file is impossible.
Is<br>
> > there any other way?<br>
> <br>
> You can use a replaceable parameter in the FILTER clause if all you<br>
> want to do is alter the WHERE clause. So for example:<br>
> FILTER "%criteria%"<br>
> and<br>
> criteria=id='value'<br>
> would work with a database like Postgres.<br>
> <br>
> When working with a database you put the whole SQL WHERE clause in
the<br>
> FILTER, whereas with shapefiles or ORG data sources you use the<br>
> FILTERITEM and FILTER.<br>
> <br>
> -- <br>
> Richard Greenwood<br>
> richard.greenwood@gmail.com<br>
> www.greenwoodmap.com<br>
> _______________________________________________<br>
> mapserver-users mailing list<br>
> mapserver-users@lists.osgeo.org<br>
> http://lists.osgeo.org/mailman/listinfo/mapserver-users<br>
</font></tt>