Passing a variable in mapserver
ruben rincon (sent by Nabble.com)
lists at NABBLE.COM
Sat Jan 28 14:04:47 PST 2006
Thank u matt
It really helped me and it worked just as you said.
I'm really thankful cause you replied very fast and I could solve my urgent problem. For all those who have the same problem just remember that:
FILTER is an option that works as a WHERE sentence in SQL so don't forget to write the value of the variable in ' ' couse it was my mistake.
As an example I had a PostGis table and had a column called type. I just wanted to retrieve all the data wich value were (street) so the correct statement was:
FILTER " type='street' "
and using the variable
FILTER "type= '%myvar%'"
and in the URL need to pass the variable as
....mode=browse&myvar=street
Thank u mat
--
View this message in context: http://www.nabble.com/Passing-a-variable-in-mapserver-t1012276.html#a2639206
Sent from the Mapserver - User forum at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20060128/7d3aeae0/attachment.htm>
More information about the MapServer-users
mailing list